polymer-core-rails 0.2.5 → 0.2.6
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.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/app/assets/components/context-free-parser/context-free-parser.js +27 -4
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +4 -4
- data/app/assets/components/core-ajax/core-ajax.html +38 -10
- data/app/assets/components/core-ajax/core-xhr.html +1 -1
- data/app/assets/components/core-animated-pages/core-animated-pages.html +25 -2
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +1 -1
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.css +26 -1
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.html +39 -4
- data/app/assets/components/core-doc-viewer/elements/core-doc-toc.css +3 -3
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -6
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +32 -8
- data/app/assets/components/core-dropdown/core-dropdown.html +8 -2
- data/app/assets/components/core-elements/core-elements.html +1 -0
- data/app/assets/components/core-icon/core-icon.html +0 -2
- data/app/assets/components/core-icons/av-icons.html +2 -9
- data/app/assets/components/core-icons/communication-icons.html +39 -42
- data/app/assets/components/core-icons/core-icons.html +231 -235
- data/app/assets/components/core-icons/device-icons.html +75 -90
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +40 -41
- data/app/assets/components/core-icons/image-icons.html +133 -137
- data/app/assets/components/core-icons/maps-icons.html +55 -57
- data/app/assets/components/core-icons/notification-icons.html +34 -34
- data/app/assets/components/core-icons/social-icons.html +23 -37
- data/app/assets/components/core-image/core-image.html +3 -3
- data/app/assets/components/core-list/core-list.html +50 -27
- data/app/assets/components/core-localstorage/core-localstorage.html +4 -5
- data/app/assets/components/core-menu/core-menu.html +8 -3
- data/app/assets/components/core-menu/core-submenu.html +2 -2
- data/app/assets/components/core-overlay/core-key-helper.html +3 -0
- data/app/assets/components/core-overlay/core-overlay-layer.html +3 -0
- data/app/assets/components/core-overlay/core-overlay.html +20 -4
- data/app/assets/components/core-resizable/core-resizable.html +248 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +14 -3
- data/app/assets/components/core-scroll-threshold/core-scroll-threshold.html +222 -0
- data/app/assets/components/core-scroll-threshold/metadata.html +24 -0
- data/app/assets/components/core-selection/core-selection.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +26 -26
- data/app/assets/components/core-splitter/core-splitter.html +17 -2
- data/app/assets/components/core-style/core-style.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.html +1 -1
- data/app/assets/components/core-tooltip/core-tooltip.css +2 -2
- data/app/assets/components/core-tooltip/core-tooltip.html +16 -5
- data/app/assets/components/core-tooltip/metadata.html +1 -1
- data/app/assets/components/google-code-prettify/styles/doxy.css +1 -1
- data/app/assets/components/marked/lib/marked.js +11 -5
- data/app/assets/components/marked/marked.min.js +6 -0
- data/app/assets/components/paper-button/paper-button-base.html +56 -12
- data/app/assets/components/paper-button/paper-button.html +22 -5
- data/app/assets/components/paper-fab/paper-fab.html +2 -2
- data/app/assets/components/paper-ripple/paper-ripple.html +2 -1
- data/app/assets/components/paper-shadow/paper-shadow.css +10 -10
- data/app/assets/components/paper-shadow/paper-shadow.html +8 -1
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-constructor.js +10 -5
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-node.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/animation.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/apply-preserving-inline-style.js +2 -3
- data/app/assets/components/{web-animations-next → web-animations-js}/src/apply.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/box-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/color-handler.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/deprecation.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/dev.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/dimension-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/effect-callback.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/effect.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/element-animatable.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/font-weight-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/group-constructors.js +2 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/handler-utils.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-decomposition.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/normalize-keyframes.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/number-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/player.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/position-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/property-interpolation.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/property-names.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/scope.js +2 -2
- data/app/assets/components/{web-animations-next → web-animations-js}/src/shadow-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/shape-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/tick.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/timeline.js +7 -7
- data/app/assets/components/{web-animations-next → web-animations-js}/src/timing-utilities.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/src/transform-handler.js +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/src/visibility-handler.js +1 -1
- data/app/assets/components/{web-animations-next/src/maxifill-player.js → web-animations-js/src/web-animations-next-player.js} +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.html +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.js +0 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.html +1 -1
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.js +0 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.html +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.js +0 -0
- data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.html +1 -3
- data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +634 -0
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.js +764 -0
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +4277 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +13 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +1728 -0
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +11 -0
- data/app/assets/components/webcomponentsjs/webcomponents.js +6114 -0
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +14 -0
- data/lib/polymer-core-rails/version.rb +1 -1
- metadata +60 -76
- data/app/assets/components/context-free-parser/package.json +0 -16
- data/app/assets/components/core-ajax/demo-progress.html +0 -65
- data/app/assets/components/core-dropdown/metadata.html +0 -62
- data/app/assets/components/core-icons/png-icons.html +0 -19
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +0 -127
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +0 -153
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +0 -167
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +0 -130
- data/app/assets/components/core-overlay/tests/js/htmltests.js +0 -6
- data/app/assets/components/core-overlay/tests/runner.html +0 -14
- data/app/assets/components/core-overlay/tests/tests.json +0 -6
- data/app/assets/components/core-popup-menu/core-popup-menu.css +0 -28
- data/app/assets/components/core-popup-menu/core-popup-menu.html +0 -198
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +0 -111
- data/app/assets/components/core-popup-menu/metadata.html +0 -62
- data/app/assets/components/core-shared-lib/tests/html/core-shared-lib.html +0 -47
- data/app/assets/components/core-shared-lib/tests/js/htmltests.js +0 -3
- data/app/assets/components/core-shared-lib/tests/runner.html +0 -14
- data/app/assets/components/core-shared-lib/tests/tests.json +0 -6
- data/app/assets/components/marked/LICENSE +0 -19
- data/app/assets/components/marked/Makefile +0 -12
- data/app/assets/components/marked/package.json +0 -22
- data/app/assets/components/platform/platform.js +0 -16
- data/app/assets/components/web-animations-js/web-animations.js +0 -5529
- data/app/assets/components/web-animations-next/Gruntfile.js +0 -279
- data/app/assets/components/web-animations-next/History.md +0 -76
- data/app/assets/components/web-animations-next/package.json +0 -33
- data/app/assets/components/web-animations-next/target-config.js +0 -124
- data/app/assets/components/web-animations-next/target-loader.js +0 -13
- data/app/assets/components/web-animations-next/templates/boilerplate +0 -13
- data/app/assets/components/web-animations-next/templates/runner.html +0 -26
- data/app/assets/components/web-animations-next/templates/web-animations.html +0 -18
- data/app/assets/components/web-animations-next/templates/web-animations.js +0 -21
@@ -1,279 +0,0 @@
|
|
1
|
-
module.exports = function(grunt) {
|
2
|
-
grunt.loadNpmTasks('grunt-contrib-uglify');
|
3
|
-
grunt.loadNpmTasks('grunt-gjslint');
|
4
|
-
grunt.loadNpmTasks('grunt-checkrepo');
|
5
|
-
grunt.loadNpmTasks('grunt-karma');
|
6
|
-
grunt.loadNpmTasks('grunt-saucelabs');
|
7
|
-
grunt.loadNpmTasks('grunt-git-status');
|
8
|
-
grunt.loadNpmTasks('grunt-template');
|
9
|
-
|
10
|
-
var targetConfig = require('./target-config.js');
|
11
|
-
|
12
|
-
var sourceMap = require('source-map');
|
13
|
-
|
14
|
-
var config = {
|
15
|
-
uglify: {},
|
16
|
-
template: {},
|
17
|
-
wrap: {},
|
18
|
-
sourceMapConcat: {},
|
19
|
-
};
|
20
|
-
|
21
|
-
function concat(sources, target, defines) {
|
22
|
-
config.uglify[target] = {
|
23
|
-
options: {
|
24
|
-
sourceMap: true,
|
25
|
-
sourceMapName: target + '.map',
|
26
|
-
wrap: false,
|
27
|
-
compress: {
|
28
|
-
global_defs: defines,
|
29
|
-
dead_code: false
|
30
|
-
},
|
31
|
-
mangle: false
|
32
|
-
},
|
33
|
-
nonull: true,
|
34
|
-
dest: target,
|
35
|
-
src: sources
|
36
|
-
};
|
37
|
-
return 'uglify:' + target;
|
38
|
-
}
|
39
|
-
|
40
|
-
function compress(source, target, defines) {
|
41
|
-
var name = concat([source], target, defines);
|
42
|
-
var record = config.uglify[target];
|
43
|
-
record.options.sourceMapIn = source + '.map';
|
44
|
-
record.options.banner = grunt.file.read('templates/boilerplate');
|
45
|
-
record.options.wrap = true;
|
46
|
-
record.options.compress.dead_code = true;
|
47
|
-
record.options.mangle = { eval: true };
|
48
|
-
return name;
|
49
|
-
}
|
50
|
-
|
51
|
-
function genTarget(target) {
|
52
|
-
var config = targetConfig[target];
|
53
|
-
var newGens = [
|
54
|
-
generateFromTemplate('templates/web-animations.js', {target: target}, target + '.dev.js'),
|
55
|
-
generateFromTemplate('templates/web-animations.html', {src: config.src}, target + '.dev.html'),
|
56
|
-
generateFromTemplate('templates/runner.html', {target: target}, 'test/runner-' + target + '.html')];
|
57
|
-
return newGens;
|
58
|
-
}
|
59
|
-
|
60
|
-
function generateFromTemplate(source, data, target) {
|
61
|
-
var targetSpec = {};
|
62
|
-
targetSpec[target] = [source];
|
63
|
-
config.template[target] = {
|
64
|
-
options: {
|
65
|
-
data: data
|
66
|
-
},
|
67
|
-
files: targetSpec
|
68
|
-
}
|
69
|
-
return 'template:' + target;
|
70
|
-
}
|
71
|
-
|
72
|
-
function guard(source, target) {
|
73
|
-
config.wrap[target] = {
|
74
|
-
source: source,
|
75
|
-
preamble: '(function() {\n' +
|
76
|
-
' if (document.documentElement.animate) {\n' +
|
77
|
-
' var player = document.documentElement.animate([], 0);\n' +
|
78
|
-
' var load = true;\n' +
|
79
|
-
' if (player) {\n' +
|
80
|
-
' load = false;\n' +
|
81
|
-
' "play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(t) {\n' +
|
82
|
-
' if (player[t] === undefined) {\n' +
|
83
|
-
' load = true;\n' +
|
84
|
-
' }\n' +
|
85
|
-
' });\n' +
|
86
|
-
' }\n' +
|
87
|
-
' if (!load) { return; }' +
|
88
|
-
' }\n',
|
89
|
-
postamble: '})();'
|
90
|
-
};
|
91
|
-
return 'wrap:' + target;
|
92
|
-
}
|
93
|
-
|
94
|
-
function concatWithMaps(sources, target) {
|
95
|
-
config.sourceMapConcat[target] = {
|
96
|
-
sources: sources
|
97
|
-
}
|
98
|
-
return 'sourceMapConcat:' + target;
|
99
|
-
};
|
100
|
-
|
101
|
-
var concatDefines = {
|
102
|
-
WEB_ANIMATIONS_TESTING: false
|
103
|
-
};
|
104
|
-
|
105
|
-
function buildMinifill(target) {
|
106
|
-
var config = targetConfig[target];
|
107
|
-
return genTarget(target).concat([
|
108
|
-
concat(config.scopeSrc.concat(config.sharedSrc).concat(config.minifillSrc), 'inter-raw-' + target + '.js', concatDefines),
|
109
|
-
guard('inter-raw-' + target + '.js', 'inter-' + target + '.js'),
|
110
|
-
compress('inter-' + target + '.js', target + '.min.js', concatDefines)
|
111
|
-
]);
|
112
|
-
}
|
113
|
-
|
114
|
-
function buildMaxifill(target) {
|
115
|
-
var config = targetConfig[target];
|
116
|
-
return genTarget(target).concat([
|
117
|
-
concat(config.scopeSrc.concat(config.sharedSrc), 'inter-' + target + '-preamble.js', concatDefines),
|
118
|
-
concat(config.minifillSrc, 'inter-component-' + target + 'minifill.js', concatDefines),
|
119
|
-
guard('inter-component-' + target + 'minifill.js', 'inter-guarded-' + target + '-minifill.js'),
|
120
|
-
concat(config.maxifillSrc, 'inter-component-' + target + '.js', concatDefines),
|
121
|
-
concatWithMaps(['inter-' + target + '-preamble.js', 'inter-guarded-' + target + '-minifill.js', 'inter-component-' + target + '.js'],
|
122
|
-
'inter-' + target + '.js'),
|
123
|
-
compress('inter-' + target + '.js', target + '.min.js', concatDefines)
|
124
|
-
]);
|
125
|
-
}
|
126
|
-
|
127
|
-
grunt.registerTask('web-animations', buildMinifill('web-animations'));
|
128
|
-
grunt.registerTask('web-animations-next', buildMaxifill('web-animations-next'));
|
129
|
-
grunt.registerTask('web-animations-next-lite', buildMaxifill('web-animations-next-lite'));
|
130
|
-
|
131
|
-
var testTargets = {'web-animations': {}, 'web-animations-next': {}};
|
132
|
-
|
133
|
-
grunt.initConfig({
|
134
|
-
uglify: config.uglify,
|
135
|
-
template: config.template,
|
136
|
-
wrap: config.wrap,
|
137
|
-
sourceMapConcat: config.sourceMapConcat,
|
138
|
-
checkrepo: {
|
139
|
-
all: {
|
140
|
-
clean: true,
|
141
|
-
},
|
142
|
-
},
|
143
|
-
'git-status': {
|
144
|
-
all: {
|
145
|
-
},
|
146
|
-
},
|
147
|
-
gjslint: {
|
148
|
-
options: {
|
149
|
-
flags: [
|
150
|
-
'--nojsdoc',
|
151
|
-
'--strict',
|
152
|
-
'--disable 7,121,110', // 7: Wrong blank line count
|
153
|
-
// 121: Illegal comma at end of object literal
|
154
|
-
// 110: Line too long
|
155
|
-
],
|
156
|
-
reporter: {
|
157
|
-
name: 'console'
|
158
|
-
}
|
159
|
-
},
|
160
|
-
all: {
|
161
|
-
src: [
|
162
|
-
'src/*.js',
|
163
|
-
'test/*.js',
|
164
|
-
'test/js/*.js',
|
165
|
-
],
|
166
|
-
}
|
167
|
-
},
|
168
|
-
test: testTargets,
|
169
|
-
sauce: testTargets,
|
170
|
-
});
|
171
|
-
|
172
|
-
|
173
|
-
grunt.task.registerMultiTask('test', 'Run <target> tests under Karma', function() {
|
174
|
-
var done = this.async();
|
175
|
-
var karmaConfig = require('karma/lib/config').parseConfig(require('path').resolve('test/karma-config.js'), {});
|
176
|
-
var config = targetConfig[this.target];
|
177
|
-
karmaConfig.files = ['test/runner.js'].concat(config.src, config.test);
|
178
|
-
var karmaServer = require('karma').server;
|
179
|
-
karmaServer.start(karmaConfig, function(exitCode) {
|
180
|
-
done(exitCode === 0);
|
181
|
-
});
|
182
|
-
});
|
183
|
-
|
184
|
-
grunt.task.registerMultiTask('sauce', 'Run <target> tests under Karma on Saucelabs', function() {
|
185
|
-
var done = this.async();
|
186
|
-
var karmaConfig = require('karma/lib/config').parseConfig(require('path').resolve('test/karma-config-ci.js'), {});
|
187
|
-
var config = targetConfig[this.target];
|
188
|
-
karmaConfig.files = ['test/runner.js'].concat(config.src, config.test);
|
189
|
-
karmaConfig.sauceLabs.testName = 'web-animation-next ' + this.target + ' Unit tests';
|
190
|
-
var karmaServer = require('karma').server;
|
191
|
-
karmaServer.start(karmaConfig, function(exitCode) {
|
192
|
-
done(exitCode === 0);
|
193
|
-
});
|
194
|
-
});
|
195
|
-
|
196
|
-
grunt.task.registerMultiTask('sourceMapConcat', 'concat source files and produce combined source map',
|
197
|
-
function() {
|
198
|
-
var sources = this.data.sources.map(grunt.file.read);
|
199
|
-
var sourceMaps = this.data.sources.map(function(f) { return grunt.file.read(f + '.map'); });
|
200
|
-
var out = "";
|
201
|
-
var outMapGenerator = new sourceMap.SourceMapGenerator({file: this.target});
|
202
|
-
var lineDelta = 0;
|
203
|
-
for (var i = 0; i < sources.length; i++) {
|
204
|
-
out += sources[i];
|
205
|
-
new sourceMap.SourceMapConsumer(sourceMaps[i]).eachMapping(function(mapping) {
|
206
|
-
outMapGenerator.addMapping({
|
207
|
-
generated: {line: mapping.generatedLine + lineDelta, column: mapping.generatedColumn},
|
208
|
-
original: {line: mapping.originalLine, column: mapping.originalColumn},
|
209
|
-
source: mapping.source, name: mapping.name});
|
210
|
-
});
|
211
|
-
var sourceLines = sources[i].split('\n');
|
212
|
-
lineDelta += sourceLines.length;
|
213
|
-
if (sources[i][sources[i].length - 1] !== '\n') {
|
214
|
-
out += '\n';
|
215
|
-
}
|
216
|
-
}
|
217
|
-
grunt.file.write(this.target, out);
|
218
|
-
grunt.file.write(this.target + '.map', outMapGenerator.toString());
|
219
|
-
});
|
220
|
-
|
221
|
-
grunt.task.registerMultiTask('wrap', 'Wrap <target> source file and update source map',
|
222
|
-
function() {
|
223
|
-
var inFile = grunt.file.read(this.data.source);
|
224
|
-
var inMap = grunt.file.read(this.data.source + '.map');
|
225
|
-
var inLines = inFile.split('\n');
|
226
|
-
var i = 0;
|
227
|
-
|
228
|
-
// Discover copyright header
|
229
|
-
while (inLines[i].length < 2 || inLines[i].substring(0, 2) == '//') {
|
230
|
-
i++;
|
231
|
-
}
|
232
|
-
|
233
|
-
// Fix mapping footer
|
234
|
-
var postamble = this.data.postamble;
|
235
|
-
if (inLines[inLines.length - 1].substring(0, 21) == '//# sourceMappingURL=') {
|
236
|
-
postamble += '\n//# sourceMappingURL=' + this.target + '.map';
|
237
|
-
}
|
238
|
-
|
239
|
-
if (i > 0) {
|
240
|
-
var banner = inLines.slice(0, i).join('\n') + '\n';
|
241
|
-
} else {
|
242
|
-
var banner = '';
|
243
|
-
}
|
244
|
-
|
245
|
-
var source = inLines.slice(i, inLines.length - 1).join('\n');
|
246
|
-
|
247
|
-
grunt.file.write(this.target, banner + this.data.preamble + source + postamble);
|
248
|
-
var preLines = this.data.preamble.split('\n');
|
249
|
-
var lineDelta = preLines.length;
|
250
|
-
if (this.data.preamble[this.data.preamble.length - 1] == '\n') {
|
251
|
-
var charDelta = 0;
|
252
|
-
} else {
|
253
|
-
var charDelta = preLines[lineDelta - 1].length;
|
254
|
-
lineDelta -= 1;
|
255
|
-
}
|
256
|
-
var inMapConsumer = new sourceMap.SourceMapConsumer(inMap);
|
257
|
-
var outMapGenerator = new sourceMap.SourceMapGenerator({file: this.target});
|
258
|
-
inMapConsumer.eachMapping(function(mapping) {
|
259
|
-
if (mapping.generatedLine == i + 1) {
|
260
|
-
mapping.generatedColumn += charDelta;
|
261
|
-
}
|
262
|
-
mapping.generatedLine += lineDelta;
|
263
|
-
outMapGenerator.addMapping(
|
264
|
-
{generated: {line: mapping.generatedLine, column: mapping.generatedColumn},
|
265
|
-
original: {line: mapping.originalLine, column: mapping.originalColumn},
|
266
|
-
source: mapping.source, name: mapping.name});
|
267
|
-
});
|
268
|
-
grunt.file.write(this.target + '.map', outMapGenerator.toString());
|
269
|
-
});
|
270
|
-
|
271
|
-
grunt.task.registerTask('clean', 'Remove files generated by grunt', function() {
|
272
|
-
grunt.file.expand('web-animations*').concat(grunt.file.expand('test/runner-*.html')).concat(grunt.file.expand('inter-*')).forEach(function(file) {
|
273
|
-
grunt.file.delete(file);
|
274
|
-
grunt.log.writeln('File ' + file + ' removed');
|
275
|
-
});
|
276
|
-
});
|
277
|
-
|
278
|
-
grunt.task.registerTask('default', ['web-animations', 'web-animations-next', 'web-animations-next-lite', 'gjslint']);
|
279
|
-
};
|
@@ -1,76 +0,0 @@
|
|
1
|
-
### 1.0.4 - *December 8 2014*
|
2
|
-
|
3
|
-
* Fix a critical bug where deprecation logic wasn't being loaded
|
4
|
-
when `web-animations-next` and `web-animations-next-lite` were
|
5
|
-
executed on top of a native `element.animate`.
|
6
|
-
|
7
|
-
### 1.0.3 - *December 4 2014*
|
8
|
-
|
9
|
-
* Fix a critical bug on iOS 7 and Safari <= 6. Due to limitations,
|
10
|
-
inline style patching is not supported on these platforms.
|
11
|
-
|
12
|
-
### 1.0.2 - *November 28 2014*
|
13
|
-
|
14
|
-
* Deprecated `AnimationTiming.playbackRate`.
|
15
|
-
|
16
|
-
For example, this is no longer supported:
|
17
|
-
|
18
|
-
var player = element.animate(
|
19
|
-
keyframes,
|
20
|
-
{duration: 1000, playbackRate: 2});
|
21
|
-
|
22
|
-
Use `AnimationPlayer.playbackRate` instead:
|
23
|
-
|
24
|
-
var player = element.animate(
|
25
|
-
keyframes,
|
26
|
-
{duration: 1000});
|
27
|
-
player.playbackRate = 2;
|
28
|
-
|
29
|
-
If you have any feedback on this change, please start a discussion
|
30
|
-
on the public-fx mailing list:
|
31
|
-
http://lists.w3.org/Archives/Public/public-fx/
|
32
|
-
|
33
|
-
Or file an issue against the specification on GitHub:
|
34
|
-
https://github.com/w3c/web-animations/issues/new
|
35
|
-
|
36
|
-
### 1.0.1 - *November 26 2014*
|
37
|
-
|
38
|
-
* Players should be constructed in idle state
|
39
|
-
* `play()` and `reverse()` should not force a start times
|
40
|
-
* Add `requestAnimationFrame` ids and `cancelAnimationFrame`
|
41
|
-
|
42
|
-
### 1.0.0 — *November 21 2014*
|
43
|
-
|
44
|
-
The web-animations-js hackers are pleased to announce the release of
|
45
|
-
a new codebase for the Web Animations Polyfill:
|
46
|
-
https://github.com/web-animations/web-animations-js
|
47
|
-
|
48
|
-
The previous polyfill has been moved to:
|
49
|
-
https://github.com/web-animations/web-animations-js-legacy
|
50
|
-
|
51
|
-
The new codebase is focused on code-size -- our smallest target is
|
52
|
-
now only 33kb or 11kb after gzip.
|
53
|
-
|
54
|
-
We've implemented native fallback. If the target browser provides
|
55
|
-
Web Animations features natively, the Polyfill will use them.
|
56
|
-
|
57
|
-
We now provide three different build targets:
|
58
|
-
|
59
|
-
`web-animations.min.js` - Tracks the Web Animations features that
|
60
|
-
are supported natively in browsers. Today that means Element.animate
|
61
|
-
and Playback Control in Chrome. If you’re not sure what features you
|
62
|
-
will need, start with this.
|
63
|
-
|
64
|
-
`web-animations-next.min.js` - All of web-animations.min.js plus
|
65
|
-
features that are still undergoing discussion or have yet to be
|
66
|
-
implemented natively.
|
67
|
-
|
68
|
-
`web-animations-next-lite.min.js` - A cut down version of
|
69
|
-
web-animations-next, removes several lesser used property handlers
|
70
|
-
and some of the larger and less used features such as matrix
|
71
|
-
interpolation/decomposition.
|
72
|
-
|
73
|
-
Not all features of the previous polyfill have been ported to the
|
74
|
-
new codebase; most notably mutation of Animations and Groups and
|
75
|
-
Additive Animations are not yet supported. These features are still
|
76
|
-
important and will be implemented in the coming weeks.
|
@@ -1,33 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "web-animations-js",
|
3
|
-
"private": true,
|
4
|
-
"repository": {
|
5
|
-
"type": "git",
|
6
|
-
"url": "https://github.com/web-animations/web-animations-js.git"
|
7
|
-
},
|
8
|
-
"devDependencies": {
|
9
|
-
"mocha": "1.21.4",
|
10
|
-
"chai": "^1.9.1",
|
11
|
-
"grunt": "~0.4.5",
|
12
|
-
"grunt-contrib-uglify": "^0.4.0",
|
13
|
-
"grunt-gjslint": "^0.1.4",
|
14
|
-
"grunt-karma": "^0.8.2",
|
15
|
-
"karma": "^0.12.14",
|
16
|
-
"karma-mocha": "^0.1.3",
|
17
|
-
"karma-chai": "^0.1.0",
|
18
|
-
"karma-chrome-launcher": "~0.1.4",
|
19
|
-
"karma-firefox-launcher": "~0.1.3",
|
20
|
-
"karma-ie-launcher": "~0.1.5",
|
21
|
-
"karma-safari-launcher": "~0.1.1",
|
22
|
-
"karma-sauce-launcher": "~0.2.3",
|
23
|
-
"grunt-checkrepo": "~0.1.0",
|
24
|
-
"grunt-saucelabs": "~4.0.2",
|
25
|
-
"grunt-checkrepo": "~0.1.0",
|
26
|
-
"grunt-git-status": "~1.0.0",
|
27
|
-
"grunt-template": "~0.2.3",
|
28
|
-
"source-map": "~0.1.40"
|
29
|
-
},
|
30
|
-
"scripts": {
|
31
|
-
"test": "grunt test gjslint git-status checkrepo"
|
32
|
-
}
|
33
|
-
}
|
@@ -1,124 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
|
3
|
-
var scopeSrc = [
|
4
|
-
'src/scope.js'];
|
5
|
-
|
6
|
-
var minifillSrc = [
|
7
|
-
'src/animation-node.js',
|
8
|
-
'src/effect.js',
|
9
|
-
'src/property-interpolation.js',
|
10
|
-
'src/animation.js',
|
11
|
-
'src/apply-preserving-inline-style.js',
|
12
|
-
'src/element-animatable.js',
|
13
|
-
'src/interpolation.js',
|
14
|
-
'src/matrix-interpolation.js',
|
15
|
-
'src/player.js',
|
16
|
-
'src/tick.js',
|
17
|
-
'src/matrix-decomposition.js',
|
18
|
-
'src/handler-utils.js',
|
19
|
-
'src/shadow-handler.js',
|
20
|
-
'src/number-handler.js',
|
21
|
-
'src/visibility-handler.js',
|
22
|
-
'src/color-handler.js',
|
23
|
-
'src/dimension-handler.js',
|
24
|
-
'src/box-handler.js',
|
25
|
-
'src/transform-handler.js',
|
26
|
-
'src/font-weight-handler.js',
|
27
|
-
'src/position-handler.js',
|
28
|
-
'src/shape-handler.js',
|
29
|
-
'src/property-names.js',
|
30
|
-
];
|
31
|
-
|
32
|
-
var liteMinifillSrc = [
|
33
|
-
'src/animation-node.js',
|
34
|
-
'src/effect.js',
|
35
|
-
'src/property-interpolation.js',
|
36
|
-
'src/animation.js',
|
37
|
-
'src/apply.js',
|
38
|
-
'src/element-animatable.js',
|
39
|
-
'src/interpolation.js',
|
40
|
-
'src/player.js',
|
41
|
-
'src/tick.js',
|
42
|
-
'src/handler-utils.js',
|
43
|
-
'src/shadow-handler.js',
|
44
|
-
'src/number-handler.js',
|
45
|
-
'src/visibility-handler.js',
|
46
|
-
'src/color-handler.js',
|
47
|
-
'src/dimension-handler.js',
|
48
|
-
'src/box-handler.js',
|
49
|
-
'src/transform-handler.js',
|
50
|
-
'src/property-names.js',
|
51
|
-
];
|
52
|
-
|
53
|
-
|
54
|
-
var sharedSrc = [
|
55
|
-
'src/timing-utilities.js',
|
56
|
-
'src/normalize-keyframes.js',
|
57
|
-
'src/deprecation.js',
|
58
|
-
];
|
59
|
-
|
60
|
-
var maxifillSrc = [
|
61
|
-
'src/timeline.js',
|
62
|
-
'src/maxifill-player.js',
|
63
|
-
'src/animation-constructor.js',
|
64
|
-
'src/effect-callback.js',
|
65
|
-
'src/group-constructors.js'];
|
66
|
-
|
67
|
-
var minifillTest = [
|
68
|
-
'test/js/animation-node.js',
|
69
|
-
'test/js/apply-preserving-inline-style.js',
|
70
|
-
'test/js/box-handler.js',
|
71
|
-
'test/js/color-handler.js',
|
72
|
-
'test/js/dimension-handler.js',
|
73
|
-
'test/js/effect.js',
|
74
|
-
'test/js/interpolation.js',
|
75
|
-
'test/js/matrix-interpolation.js',
|
76
|
-
'test/js/number-handler.js',
|
77
|
-
'test/js/player.js',
|
78
|
-
'test/js/player-finish-event.js',
|
79
|
-
'test/js/property-interpolation.js',
|
80
|
-
'test/js/tick.js',
|
81
|
-
'test/js/timing.js',
|
82
|
-
'test/js/transform-handler.js'];
|
83
|
-
|
84
|
-
var maxifillTest = minifillTest.concat(
|
85
|
-
'test/js/animation-constructor.js',
|
86
|
-
'test/js/effect-callback.js',
|
87
|
-
'test/js/group-constructors.js',
|
88
|
-
'test/js/group-player.js',
|
89
|
-
'test/js/group-player-finish-event.js',
|
90
|
-
'test/js/timeline.js');
|
91
|
-
|
92
|
-
// This object specifies the source and test files for different Web Animation build targets.
|
93
|
-
var targetConfig = {
|
94
|
-
'web-animations': {
|
95
|
-
scopeSrc: scopeSrc,
|
96
|
-
sharedSrc: sharedSrc,
|
97
|
-
minifillSrc: minifillSrc,
|
98
|
-
maxifillSrc: [],
|
99
|
-
src: scopeSrc.concat(sharedSrc).concat(minifillSrc),
|
100
|
-
test: minifillTest,
|
101
|
-
},
|
102
|
-
'web-animations-next': {
|
103
|
-
scopeSrc: scopeSrc,
|
104
|
-
sharedSrc: sharedSrc,
|
105
|
-
minifillSrc: minifillSrc,
|
106
|
-
maxifillSrc: maxifillSrc,
|
107
|
-
src: scopeSrc.concat(sharedSrc).concat(minifillSrc).concat(maxifillSrc),
|
108
|
-
test: maxifillTest,
|
109
|
-
},
|
110
|
-
'web-animations-next-lite': {
|
111
|
-
scopeSrc: scopeSrc,
|
112
|
-
sharedSrc: sharedSrc,
|
113
|
-
minifillSrc: liteMinifillSrc,
|
114
|
-
maxifillSrc: maxifillSrc,
|
115
|
-
src: scopeSrc.concat(sharedSrc).concat(liteMinifillSrc).concat(maxifillSrc),
|
116
|
-
test: [],
|
117
|
-
},
|
118
|
-
};
|
119
|
-
|
120
|
-
if (typeof module != 'undefined')
|
121
|
-
module.exports = targetConfig;
|
122
|
-
else
|
123
|
-
window.webAnimationsTargetConfig = targetConfig;
|
124
|
-
})();
|
@@ -1,13 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
var target = webAnimationsTargetConfig.defaultTarget;
|
3
|
-
if (typeof webAnimationsSourceTarget != 'undefined')
|
4
|
-
target = webAnimationsSourceTarget;
|
5
|
-
|
6
|
-
// Native implementation detection.
|
7
|
-
|
8
|
-
var scripts = document.getElementsByTagName('script');
|
9
|
-
var location = scripts[scripts.length - 1].src.replace(/[^\/]+$/, '');
|
10
|
-
webAnimationsTargetConfig[target].src.forEach(function(sourceFile) {
|
11
|
-
document.write('<script src="' + location + sourceFile + '"></script>');
|
12
|
-
});
|
13
|
-
})();
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Copyright 2014 Google Inc. All rights reserved.
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
-->
|
16
|
-
<!DOCTYPE html>
|
17
|
-
<meta charset="UTF-8">
|
18
|
-
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
|
19
|
-
<script src="../node_modules/mocha/mocha.js"></script>
|
20
|
-
<script src="../node_modules/chai/chai.js"></script>
|
21
|
-
<script src="../target-config.js"></script>
|
22
|
-
<script src="runner.js"></script>
|
23
|
-
<script>
|
24
|
-
loadWebAnimationsBuildTarget('<%= target %>');
|
25
|
-
</script>
|
26
|
-
<div id="mocha"></div>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Copyright 2014 Google Inc. All rights reserved.
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
|
-
-->
|
16
|
-
<script src="src/dev.js"></script>
|
17
|
-
<% _.forEach(src, function(src) { %><script src="<%= src %>"></script>
|
18
|
-
<% }); %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
var webAnimationsSourceTarget = '<%= target %>';
|
15
|
-
var WEB_ANIMATIONS_TESTING = false;
|
16
|
-
(function() {
|
17
|
-
var scripts = document.getElementsByTagName('script');
|
18
|
-
var location = scripts[scripts.length - 1].src.replace(/[^\/]+$/, '');
|
19
|
-
document.write('<script src="' + location + 'target-config.js"></script>');
|
20
|
-
document.write('<script src="' + location + 'target-loader.js"></script>');
|
21
|
-
})();
|