@materializecss/materialize 2.0.3-beta → 2.0.3

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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/dist/css/materialize.css +37 -15
  3. package/dist/css/materialize.min.css +2 -2
  4. package/dist/js/materialize.js +503 -1974
  5. package/dist/js/materialize.min.js +2 -2
  6. package/dist/js/materialize.min.js.map +1 -1
  7. package/dist/src/buttons.d.ts.map +1 -1
  8. package/dist/src/cards.d.ts.map +1 -1
  9. package/dist/src/collapsible.d.ts +1 -0
  10. package/dist/src/collapsible.d.ts.map +1 -1
  11. package/dist/src/dropdown.d.ts.map +1 -1
  12. package/dist/src/global.d.ts.map +1 -1
  13. package/dist/src/materialbox.d.ts +14 -10
  14. package/dist/src/materialbox.d.ts.map +1 -1
  15. package/dist/src/modal.d.ts.map +1 -1
  16. package/dist/src/range.d.ts.map +1 -1
  17. package/dist/src/scrollspy.d.ts.map +1 -1
  18. package/dist/src/sidenav.d.ts +25 -25
  19. package/dist/src/sidenav.d.ts.map +1 -1
  20. package/dist/src/slider.d.ts +12 -12
  21. package/dist/src/slider.d.ts.map +1 -1
  22. package/dist/src/tabs.d.ts +1 -1
  23. package/dist/src/tabs.d.ts.map +1 -1
  24. package/dist/src/toasts.d.ts +7 -2
  25. package/dist/src/toasts.d.ts.map +1 -1
  26. package/dist/src/tooltip.d.ts.map +1 -1
  27. package/package.json +14 -10
  28. package/sass/components/_collapsible.scss +14 -2
  29. package/sass/components/_materialbox.scss +2 -2
  30. package/sass/components/_modal.scss +0 -1
  31. package/sass/components/_tooltip.scss +18 -8
  32. package/sass/components/_variables.scss +2 -2
  33. package/Gruntfile.js +0 -385
  34. package/src/autocomplete.ts +0 -553
  35. package/src/bounding.ts +0 -6
  36. package/src/buttons.ts +0 -260
  37. package/src/cards.ts +0 -53
  38. package/src/carousel.ts +0 -676
  39. package/src/characterCounter.ts +0 -117
  40. package/src/chips.ts +0 -439
  41. package/src/collapsible.ts +0 -249
  42. package/src/component.ts +0 -120
  43. package/src/datepicker.ts +0 -1076
  44. package/src/dropdown.ts +0 -644
  45. package/src/edges.ts +0 -6
  46. package/src/forms.ts +0 -132
  47. package/src/global.ts +0 -114
  48. package/src/index.ts +0 -26
  49. package/src/materialbox.ts +0 -404
  50. package/src/modal.ts +0 -341
  51. package/src/parallax.ts +0 -149
  52. package/src/pushpin.ts +0 -165
  53. package/src/range.ts +0 -198
  54. package/src/scrollspy.ts +0 -263
  55. package/src/select.ts +0 -484
  56. package/src/sidenav.ts +0 -543
  57. package/src/slider.ts +0 -474
  58. package/src/tabs.ts +0 -347
  59. package/src/tapTarget.ts +0 -273
  60. package/src/timepicker.ts +0 -832
  61. package/src/toasts.ts +0 -290
  62. package/src/tooltip.ts +0 -366
  63. package/src/utils.ts +0 -271
  64. package/src/waves.ts +0 -70
package/Gruntfile.js DELETED
@@ -1,385 +0,0 @@
1
- const path = require('path');
2
- const sass = require('sass');
3
- const webpackConfig = require('./webpack.config.js');
4
-
5
- module.exports = function(grunt) {
6
- // configure the tasks
7
- const config = {
8
- jasmine: {
9
- components: {
10
- src: ['bin/materialize.js'],
11
- options: {
12
- vendor: ['node_modules/jquery/dist/jquery.min.js'],
13
- styles: 'bin/materialize.css',
14
- specs: 'tests/spec/**/*Spec.js',
15
- helpers: 'tests/spec/helper.js',
16
- keepRunner: true,
17
- version: '3.8.0',
18
- page: {
19
- viewportSize: {
20
- width: 1400,
21
- height: 735
22
- }
23
- },
24
- sandboxArgs: {
25
- args: ['--headless', '--no-sandbox']
26
- }
27
- }
28
- }
29
- },
30
-
31
- sass: {
32
- // Global options
33
- options: {
34
- implementation: sass
35
- },
36
- // Task
37
- expanded: {
38
- // Target options
39
- options: {
40
- outputStyle: 'expanded',
41
- sourcemap: false
42
- },
43
- files: {
44
- 'dist/css/materialize.css': 'sass/materialize.scss'
45
- }
46
- },
47
-
48
- min: {
49
- options: {
50
- outputStyle: 'compressed',
51
- sourcemap: false
52
- },
53
- files: {
54
- 'dist/css/materialize.min.css': 'sass/materialize.scss'
55
- }
56
- },
57
-
58
- // Compile ghpages css
59
- gh: {
60
- options: {
61
- outputStyle: 'compressed',
62
- sourcemap: false
63
- },
64
- files: {
65
- 'docs/css/ghpages-materialize.css': 'sass/ghpages-materialize.scss'
66
- }
67
- },
68
-
69
- // Compile bin css
70
- bin: {
71
- options: {
72
- outputStyle: 'expanded',
73
- sourcemap: false
74
- },
75
- files: {
76
- 'bin/materialize.css': 'sass/materialize.scss'
77
- }
78
- }
79
- },
80
-
81
- postcss: {
82
- options: {
83
- processors: [
84
- require('autoprefixer')({
85
- browsers: [
86
- 'last 2 versions',
87
- 'Chrome >= 30',
88
- 'Firefox >= 30',
89
- 'ie >= 10',
90
- 'Safari >= 8'
91
- ]
92
- })
93
- ]
94
- },
95
- expanded: {
96
- src: 'dist/css/materialize.css'
97
- },
98
- min: {
99
- src: 'dist/css/materialize.min.css'
100
- },
101
- bin: {
102
- src: 'bin/materialize.css'
103
- }
104
- },
105
-
106
- webpack: {
107
- options: {
108
- /*stats: !process.env.NODE_ENV || process.env.NODE_ENV === "development",*/
109
- },
110
-
111
- dev: Object.assign({}, webpackConfig, {
112
- mode: 'development'
113
- }),
114
-
115
- dev_watch: Object.assign({}, webpackConfig, {
116
- mode: 'development',
117
- watch: true
118
- }),
119
-
120
- dev_dist: Object.assign({}, webpackConfig, {
121
- mode: 'development',
122
- devtool: false,
123
- optimization: {
124
- minimize: false
125
- },
126
- output: {
127
- filename: 'materialize.js',
128
- path: path.resolve(__dirname, 'dist/js'),
129
- libraryTarget: 'umd',
130
- globalObject: 'this'
131
- }
132
- }),
133
-
134
- prod_min: Object.assign({}, webpackConfig, {
135
- mode: 'production',
136
- devtool: 'source-map',
137
- optimization: {
138
- minimize: true
139
- },
140
- output: {
141
- filename: 'materialize.min.js',
142
- path: path.resolve(__dirname, 'dist/js'),
143
- libraryTarget: 'umd',
144
- globalObject: 'this'
145
- }
146
- })
147
- },
148
-
149
- compress: {
150
- main: {
151
- options: {
152
- archive: 'bin/materialize.zip',
153
- level: 6
154
- },
155
- files: [
156
- { expand: true, cwd: 'dist/', src: ['**/*'], dest: 'materialize/' },
157
- { expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize/' }
158
- ]
159
- },
160
-
161
- src: {
162
- options: {
163
- archive: 'bin/materialize-src.zip',
164
- level: 6
165
- },
166
- files: [
167
- { expand: true, cwd: 'sass/', src: ['materialize.scss'], dest: 'materialize-src/sass/' },
168
- { expand: true, cwd: 'sass/', src: ['components/**/*'], dest: 'materialize-src/sass/' },
169
- { expand: true, cwd: 'src/', src: ['**/*'], dest: 'materialize-src/ts/' },
170
- { expand: true, cwd: 'dist/js/', src: ['**/*'], dest: 'materialize-src/js/bin/' },
171
- { expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize-src/' }
172
- ]
173
- },
174
-
175
- starter_template: {
176
- options: {
177
- archive: 'templates/starter-template.zip',
178
- level: 6
179
- },
180
- files: [
181
- { expand: true, cwd: 'dist/', src: ['**/*'], dest: 'starter-template/' },
182
- {
183
- expand: true,
184
- cwd: 'templates/starter-template/',
185
- src: ['index.html', 'LICENSE'],
186
- dest: 'starter-template/'
187
- },
188
- {
189
- expand: true,
190
- cwd: 'templates/starter-template/css',
191
- src: ['style.css'],
192
- dest: 'starter-template/css'
193
- },
194
- {
195
- expand: true,
196
- cwd: 'templates/starter-template/js',
197
- src: ['init.js'],
198
- dest: 'starter-template/js'
199
- }
200
- ]
201
- },
202
-
203
- parallax_template: {
204
- options: {
205
- archive: 'templates/parallax-template.zip',
206
- level: 6
207
- },
208
- files: [
209
- { expand: true, cwd: 'dist/', src: ['**/*'], dest: 'parallax-template/' },
210
- {
211
- expand: true,
212
- cwd: 'templates/parallax-template/',
213
- src: ['index.html', 'LICENSE', 'background1.jpg', 'background2.jpg', 'background3.jpg'],
214
- dest: 'parallax-template/'
215
- },
216
- {
217
- expand: true,
218
- cwd: 'templates/parallax-template/css',
219
- src: ['style.css'],
220
- dest: 'parallax-template/css'
221
- },
222
- {
223
- expand: true,
224
- cwd: 'templates/parallax-template/js',
225
- src: ['init.js'],
226
- dest: 'parallax-template/js'
227
- }
228
- ]
229
- }
230
- },
231
-
232
- watch: {
233
- sass: {
234
- files: ['sass/**/*'],
235
- tasks: ['sass_compile'],
236
- options: {
237
- interrupt: false,
238
- spawn: false
239
- }
240
- }
241
- },
242
-
243
- concurrent: {
244
- options: {
245
- logConcurrentOutput: true,
246
- limit: 10
247
- },
248
- monitor: {
249
- tasks: ['webpack:dev_watch', 'sass_compile', 'watch:sass']
250
- }
251
- },
252
-
253
- // Replace text to update the version string
254
- replace: {
255
- version: {
256
- src: ['bower.json', 'package.js', 'src/global.ts'],
257
- overwrite: true,
258
- replacements: [
259
- {
260
- from: grunt.option('oldver'),
261
- to: grunt.option('newver')
262
- }
263
- ]
264
- },
265
- package_json: {
266
- src: ['package.json'],
267
- overwrite: true,
268
- replacements: [
269
- {
270
- from: '"version": "' + grunt.option('oldver'),
271
- to: '"version": "' + grunt.option('newver')
272
- }
273
- ]
274
- }
275
- },
276
-
277
- // Create Version Header for files
278
- usebanner: {
279
- release: {
280
- options: {
281
- position: 'top',
282
- banner:
283
- '/*!\n * Materialize v' +
284
- grunt.option('newver') +
285
- ' (https://materializecss.github.io/materialize)\n * Copyright 2014-' +
286
- new Date().getFullYear() +
287
- ' Materialize\n * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)\n */',
288
- linebreak: true
289
- },
290
- files: {
291
- src: ['dist/css/*.css', 'dist/js/*.js']
292
- }
293
- }
294
- },
295
-
296
- rename: {
297
- rename_src: {
298
- src: 'bin/materialize-src.zip',
299
- dest: 'bin/materialize-src-v' + grunt.option('newver') + '.zip',
300
- options: {
301
- ignore: true
302
- }
303
- },
304
- rename_compiled: {
305
- src: 'bin/materialize.zip',
306
- dest: 'bin/materialize-v' + grunt.option('newver') + '.zip',
307
- options: {
308
- ignore: true
309
- }
310
- }
311
- },
312
-
313
- connect: {
314
- server: {
315
- options: {
316
- port: 9001,
317
- protocol: 'http',
318
- middleware: function(connect, options, middlewares) {
319
- middlewares.unshift(function(req, res, next) {
320
- res.setHeader('Access-Control-Allow-Origin', '*');
321
- res.setHeader('Access-Control-Allow-Credentials', true);
322
- res.setHeader(
323
- 'Access-Control-Allow-Headers',
324
- 'Origin, X-Requested-With, Content-Type, Accept'
325
- );
326
- res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
327
- next();
328
- });
329
- return middlewares;
330
- }
331
- }
332
- }
333
- }
334
- };
335
-
336
- grunt.initConfig(config);
337
-
338
- // load tasks
339
- grunt.loadNpmTasks('grunt-contrib-watch');
340
- grunt.loadNpmTasks('grunt-sass');
341
- grunt.loadNpmTasks('grunt-contrib-compress');
342
- grunt.loadNpmTasks('grunt-concurrent');
343
- grunt.loadNpmTasks('grunt-text-replace');
344
- grunt.loadNpmTasks('grunt-banner');
345
- grunt.loadNpmTasks('grunt-rename-util');
346
- grunt.loadNpmTasks('grunt-browser-sync');
347
- grunt.loadNpmTasks('grunt-contrib-jasmine');
348
- grunt.loadNpmTasks('grunt-postcss');
349
- grunt.loadNpmTasks('grunt-webpack');
350
- grunt.loadNpmTasks('grunt-contrib-connect');
351
-
352
- // define tasks
353
- grunt.registerTask('release', [
354
- 'replace:version', // before webpack
355
- 'sass:expanded',
356
- 'sass:min',
357
- 'postcss:expanded',
358
- 'postcss:min',
359
- 'webpack:dev_dist',
360
- 'webpack:prod_min',
361
- 'usebanner:release',
362
- 'compress:main',
363
- 'compress:src',
364
- 'compress:starter_template',
365
- 'compress:parallax_template',
366
- 'replace:version', // again because of cdn
367
- 'replace:package_json',
368
- 'rename:rename_src',
369
- 'rename:rename_compiled'
370
- ]);
371
-
372
- grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:bin']);
373
- grunt.registerTask('monitor', ['concurrent:monitor']); // DEV
374
- grunt.registerTask('test', ['webpack:dev', 'sass_compile', 'connect', 'jasmine']);
375
- grunt.registerTask('jas_test', ['connect', 'jasmine']);
376
-
377
- grunt.registerTask('test_repeat', function() {
378
- const tasks = ['connect'];
379
- const n = 30;
380
- for (let i = 0; i < n; i++) {
381
- tasks.push('jasmine');
382
- }
383
- grunt.task.run(tasks);
384
- });
385
- };