material_components_web-sass 0.1.1 → 0.2.0
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/.travis.yml +1 -1
- data/CHANGELOG.md +9 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +207 -104
- data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +7 -0
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d55522dc5fb6cd66e3c953551a16eb9740b586f5
|
4
|
+
data.tar.gz: b29da9138be004b7ae8563d9ced77155765377ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627f3366f81b281cf9fa9354c2ead3c7e7a49086f5b0cd0f214c3ff7433be386fdb18f982cd9d33e4598dc72a8c3731bb08cbff442810a0d0830840fcba92b7f
|
7
|
+
data.tar.gz: d9114795c64440c83610b67f41763fbdffa1433ab265bd34b7ceaeff9895ec987edd08f3736999600d7b9495a526e72ade71d17bafffcbfb5b597ad79d6ea5e8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
Material Components for the web
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2017 Google Inc.
|
4
4
|
License: Apache-2.0
|
5
5
|
*/
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
@@ -74,39 +74,39 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
74
74
|
|
75
75
|
var checkbox = _interopRequireWildcard(_checkbox);
|
76
76
|
|
77
|
-
var _iconToggle = __webpack_require__(
|
77
|
+
var _iconToggle = __webpack_require__(8);
|
78
78
|
|
79
79
|
var iconToggle = _interopRequireWildcard(_iconToggle);
|
80
80
|
|
81
|
-
var _radio = __webpack_require__(
|
81
|
+
var _radio = __webpack_require__(14);
|
82
82
|
|
83
83
|
var radio = _interopRequireWildcard(_radio);
|
84
84
|
|
85
|
-
var _ripple = __webpack_require__(
|
85
|
+
var _ripple = __webpack_require__(9);
|
86
86
|
|
87
87
|
var ripple = _interopRequireWildcard(_ripple);
|
88
88
|
|
89
|
-
var _drawer = __webpack_require__(
|
89
|
+
var _drawer = __webpack_require__(16);
|
90
90
|
|
91
91
|
var drawer = _interopRequireWildcard(_drawer);
|
92
92
|
|
93
|
-
var _textfield = __webpack_require__(
|
93
|
+
var _textfield = __webpack_require__(21);
|
94
94
|
|
95
95
|
var textfield = _interopRequireWildcard(_textfield);
|
96
96
|
|
97
|
-
var _snackbar = __webpack_require__(
|
97
|
+
var _snackbar = __webpack_require__(23);
|
98
98
|
|
99
99
|
var snackbar = _interopRequireWildcard(_snackbar);
|
100
100
|
|
101
|
-
var _menu = __webpack_require__(
|
101
|
+
var _menu = __webpack_require__(26);
|
102
102
|
|
103
103
|
var menu = _interopRequireWildcard(_menu);
|
104
104
|
|
105
|
-
var _select = __webpack_require__(
|
105
|
+
var _select = __webpack_require__(31);
|
106
106
|
|
107
107
|
var select = _interopRequireWildcard(_select);
|
108
108
|
|
109
|
-
var _autoInit = __webpack_require__(
|
109
|
+
var _autoInit = __webpack_require__(33);
|
110
110
|
|
111
111
|
var _autoInit2 = _interopRequireDefault(_autoInit);
|
112
112
|
|
@@ -417,7 +417,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
417
417
|
|
418
418
|
var _base = __webpack_require__(1);
|
419
419
|
|
420
|
-
var
|
420
|
+
var _animation = __webpack_require__(5);
|
421
|
+
|
422
|
+
var _foundation = __webpack_require__(6);
|
421
423
|
|
422
424
|
var _foundation2 = _interopRequireDefault(_foundation);
|
423
425
|
|
@@ -459,8 +461,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
459
461
|
value: function getDefaultFoundation() {
|
460
462
|
var _this2 = this;
|
461
463
|
|
462
|
-
var ANIM_END_EVENT_NAME = _foundation2.default.strings.ANIM_END_EVENT_NAME;
|
463
|
-
|
464
464
|
return new _foundation2.default({
|
465
465
|
addClass: function addClass(className) {
|
466
466
|
return _this2.root_.classList.add(className);
|
@@ -469,10 +469,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
469
469
|
return _this2.root_.classList.remove(className);
|
470
470
|
},
|
471
471
|
registerAnimationEndHandler: function registerAnimationEndHandler(handler) {
|
472
|
-
return _this2.root_.addEventListener(
|
472
|
+
return _this2.root_.addEventListener((0, _animation.getCorrectEventName)(window, 'animation'), handler);
|
473
473
|
},
|
474
474
|
deregisterAnimationEndHandler: function deregisterAnimationEndHandler(handler) {
|
475
|
-
return _this2.root_.removeEventListener(
|
475
|
+
return _this2.root_.removeEventListener((0, _animation.getCorrectEventName)(window, 'animation'), handler);
|
476
476
|
},
|
477
477
|
registerChangeHandler: function registerChangeHandler(handler) {
|
478
478
|
return _this2.nativeCb_.addEventListener('change', handler);
|
@@ -534,6 +534,138 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
534
534
|
|
535
535
|
/***/ },
|
536
536
|
/* 5 */
|
537
|
+
/***/ function(module, exports) {
|
538
|
+
|
539
|
+
'use strict';
|
540
|
+
|
541
|
+
Object.defineProperty(exports, "__esModule", {
|
542
|
+
value: true
|
543
|
+
});
|
544
|
+
exports.getCorrectEventName = getCorrectEventName;
|
545
|
+
exports.getCorrectPropertyName = getCorrectPropertyName;
|
546
|
+
/**
|
547
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
548
|
+
*
|
549
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
550
|
+
* you may not use this file except in compliance with the License.
|
551
|
+
* You may obtain a copy of the License at
|
552
|
+
*
|
553
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
554
|
+
*
|
555
|
+
* Unless required by applicable law or agreed to in writing, software
|
556
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
557
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
558
|
+
* See the License for the specific language governing permissions and
|
559
|
+
* limitations under the License.
|
560
|
+
*/
|
561
|
+
|
562
|
+
var eventTypeMap = {
|
563
|
+
animationstart: {
|
564
|
+
noPrefix: 'animationstart',
|
565
|
+
webkitPrefix: 'webkitAnimationStart'
|
566
|
+
},
|
567
|
+
animationend: {
|
568
|
+
noPrefix: 'animationend',
|
569
|
+
webkitPrefix: 'webkitAnimationEnd'
|
570
|
+
},
|
571
|
+
animationiteration: {
|
572
|
+
noPrefix: 'animationiteration',
|
573
|
+
webkitPrefix: 'webkitAnimationIteration'
|
574
|
+
},
|
575
|
+
transitionend: {
|
576
|
+
noPrefix: 'transitionend',
|
577
|
+
webkitPrefix: 'webkitTransitionEnd'
|
578
|
+
}
|
579
|
+
};
|
580
|
+
|
581
|
+
var cssPropertyMap = {
|
582
|
+
animation: {
|
583
|
+
noPrefix: 'animation',
|
584
|
+
webkitPrefix: '-webkit-animation'
|
585
|
+
},
|
586
|
+
transform: {
|
587
|
+
noPrefix: 'transform',
|
588
|
+
webkitPrefix: '-webkit-transform'
|
589
|
+
},
|
590
|
+
transition: {
|
591
|
+
noPrefix: 'transition',
|
592
|
+
webkitPrefix: '-webkit-transition'
|
593
|
+
}
|
594
|
+
};
|
595
|
+
|
596
|
+
function hasProperShape(windowObj) {
|
597
|
+
return windowObj.document !== undefined && typeof windowObj.document.createElement === 'function';
|
598
|
+
}
|
599
|
+
|
600
|
+
function eventFoundInMaps(eventType) {
|
601
|
+
return eventType in eventTypeMap || eventType in cssPropertyMap;
|
602
|
+
}
|
603
|
+
|
604
|
+
// If 'animation' or 'transition' exist as style property, webkit prefix isn't necessary. Since we are unable to
|
605
|
+
// see the event types on the element, we must rely on the corresponding style properties.
|
606
|
+
function getJavaScriptEventName(eventType, map, el) {
|
607
|
+
switch (eventType) {
|
608
|
+
case 'animationstart':
|
609
|
+
case 'animationend':
|
610
|
+
case 'animationiteration':
|
611
|
+
return 'animation' in el.style ? map[eventType].noPrefix : map[eventType].webkitPrefix;
|
612
|
+
case 'transitionend':
|
613
|
+
return 'transition' in el.style ? map[eventType].noPrefix : map[eventType].webkitPrefix;
|
614
|
+
default:
|
615
|
+
return map[eventType].noPrefix;
|
616
|
+
}
|
617
|
+
}
|
618
|
+
|
619
|
+
// Helper function to determine browser prefix for CSS3 animation events
|
620
|
+
// and property names
|
621
|
+
//
|
622
|
+
// Parameters:
|
623
|
+
// windowObject: Object -- Contains Document with a `createElement()` method
|
624
|
+
// eventType: string -- The type of animation
|
625
|
+
//
|
626
|
+
// returns the value of the event as a string, prefixed if necessary.
|
627
|
+
// If proper arguments are not supplied, this function will return
|
628
|
+
// the property or event type without webkit prefix.
|
629
|
+
//
|
630
|
+
function getAnimationName(windowObj, eventType) {
|
631
|
+
if (!hasProperShape(windowObj) || !eventFoundInMaps(eventType)) {
|
632
|
+
return eventType;
|
633
|
+
}
|
634
|
+
|
635
|
+
var map = eventType in eventTypeMap ? eventTypeMap : cssPropertyMap;
|
636
|
+
var el = windowObj.document.createElement('div');
|
637
|
+
var eventName = '';
|
638
|
+
|
639
|
+
if (map === eventTypeMap) {
|
640
|
+
eventName = getJavaScriptEventName(eventType, map, el);
|
641
|
+
} else {
|
642
|
+
eventName = map[eventType].noPrefix in el.style ? map[eventType].noPrefix : map[eventType].webkitPrefix;
|
643
|
+
}
|
644
|
+
|
645
|
+
return eventName;
|
646
|
+
}
|
647
|
+
|
648
|
+
// Public functions to access getAnimationName() for JavaScript events or CSS
|
649
|
+
// property names.
|
650
|
+
//
|
651
|
+
// Parameters:
|
652
|
+
// windowObject: Object -- Contains Document with a `createElement()` method
|
653
|
+
// eventType: string -- The type of animation
|
654
|
+
//
|
655
|
+
// returns the value of the event as a string, prefixed if necessary.
|
656
|
+
// If proper arguments are not supplied, this function will return
|
657
|
+
// the property or event type without webkit prefix.
|
658
|
+
//
|
659
|
+
function getCorrectEventName(windowObj, eventType) {
|
660
|
+
return getAnimationName(windowObj, eventType);
|
661
|
+
}
|
662
|
+
|
663
|
+
function getCorrectPropertyName(windowObj, eventType) {
|
664
|
+
return getAnimationName(windowObj, eventType);
|
665
|
+
}
|
666
|
+
|
667
|
+
/***/ },
|
668
|
+
/* 6 */
|
537
669
|
/***/ function(module, exports, __webpack_require__) {
|
538
670
|
|
539
671
|
'use strict';
|
@@ -548,7 +680,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
548
680
|
|
549
681
|
var _base = __webpack_require__(1);
|
550
682
|
|
551
|
-
var _constants = __webpack_require__(
|
683
|
+
var _constants = __webpack_require__(7);
|
552
684
|
|
553
685
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
554
686
|
|
@@ -804,7 +936,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
804
936
|
}
|
805
937
|
|
806
938
|
/***/ },
|
807
|
-
/*
|
939
|
+
/* 7 */
|
808
940
|
/***/ function(module, exports) {
|
809
941
|
|
810
942
|
'use strict';
|
@@ -844,14 +976,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
844
976
|
};
|
845
977
|
|
846
978
|
var strings = exports.strings = {
|
847
|
-
ANIM_END_EVENT_NAME: function () {
|
848
|
-
var el = document.createElement('div');
|
849
|
-
// NOTE: We can immediately assume that the prefix is 'webkit' in browsers that don't
|
850
|
-
// support unprefixed animations since the only browsers up to two major versions back that
|
851
|
-
// don't support unprefixed names are mobile Safari and Android native browser, both of
|
852
|
-
// which use the 'webkit' prefix.
|
853
|
-
return 'animation' in el.style ? 'animationend' : 'webkitAnimationEnd';
|
854
|
-
}(),
|
855
979
|
NATIVE_CONTROL_SELECTOR: '.' + ROOT + '__native-control',
|
856
980
|
TRANSITION_STATE_INIT: 'init',
|
857
981
|
TRANSITION_STATE_CHECKED: 'checked',
|
@@ -864,7 +988,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
864
988
|
};
|
865
989
|
|
866
990
|
/***/ },
|
867
|
-
/*
|
991
|
+
/* 8 */
|
868
992
|
/***/ function(module, exports, __webpack_require__) {
|
869
993
|
|
870
994
|
'use strict';
|
@@ -882,9 +1006,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
882
1006
|
|
883
1007
|
var _base = __webpack_require__(1);
|
884
1008
|
|
885
|
-
var _ripple = __webpack_require__(
|
1009
|
+
var _ripple = __webpack_require__(9);
|
886
1010
|
|
887
|
-
var _foundation = __webpack_require__(
|
1011
|
+
var _foundation = __webpack_require__(13);
|
888
1012
|
|
889
1013
|
var _foundation2 = _interopRequireDefault(_foundation);
|
890
1014
|
|
@@ -1057,7 +1181,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1057
1181
|
}(_base.MDCComponent);
|
1058
1182
|
|
1059
1183
|
/***/ },
|
1060
|
-
/*
|
1184
|
+
/* 9 */
|
1061
1185
|
/***/ function(module, exports, __webpack_require__) {
|
1062
1186
|
|
1063
1187
|
'use strict';
|
@@ -1071,11 +1195,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1071
1195
|
|
1072
1196
|
var _base = __webpack_require__(1);
|
1073
1197
|
|
1074
|
-
var _foundation = __webpack_require__(
|
1198
|
+
var _foundation = __webpack_require__(10);
|
1075
1199
|
|
1076
1200
|
var _foundation2 = _interopRequireDefault(_foundation);
|
1077
1201
|
|
1078
|
-
var _util = __webpack_require__(
|
1202
|
+
var _util = __webpack_require__(12);
|
1079
1203
|
|
1080
1204
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1081
1205
|
|
@@ -1199,7 +1323,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1199
1323
|
}(_base.MDCComponent);
|
1200
1324
|
|
1201
1325
|
/***/ },
|
1202
|
-
/*
|
1326
|
+
/* 10 */
|
1203
1327
|
/***/ function(module, exports, __webpack_require__) {
|
1204
1328
|
|
1205
1329
|
'use strict';
|
@@ -1214,9 +1338,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1214
1338
|
|
1215
1339
|
var _base = __webpack_require__(1);
|
1216
1340
|
|
1217
|
-
var
|
1341
|
+
var _animation = __webpack_require__(5);
|
1218
1342
|
|
1219
|
-
var
|
1343
|
+
var _constants = __webpack_require__(11);
|
1344
|
+
|
1345
|
+
var _util = __webpack_require__(12);
|
1220
1346
|
|
1221
1347
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1222
1348
|
|
@@ -1581,17 +1707,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1581
1707
|
top = _startPoint2.top;
|
1582
1708
|
var _MDCRippleFoundation$7 = MDCRippleFoundation.strings,
|
1583
1709
|
VAR_LEFT = _MDCRippleFoundation$7.VAR_LEFT,
|
1584
|
-
VAR_TOP = _MDCRippleFoundation$7.VAR_TOP
|
1585
|
-
TRANSITION_END_EVENT = _MDCRippleFoundation$7.TRANSITION_END_EVENT,
|
1586
|
-
ANIMATION_END_EVENT = _MDCRippleFoundation$7.ANIMATION_END_EVENT;
|
1710
|
+
VAR_TOP = _MDCRippleFoundation$7.VAR_TOP;
|
1587
1711
|
var _MDCRippleFoundation$8 = MDCRippleFoundation.cssClasses,
|
1588
1712
|
BG_BOUNDED_ACTIVE_FILL = _MDCRippleFoundation$8.BG_BOUNDED_ACTIVE_FILL,
|
1589
1713
|
FG_BOUNDED_ACTIVE_FILL = _MDCRippleFoundation$8.FG_BOUNDED_ACTIVE_FILL;
|
1590
1714
|
|
1591
1715
|
this.adapter_.updateCssVariable(VAR_LEFT, left + 'px');
|
1592
1716
|
this.adapter_.updateCssVariable(VAR_TOP, top + 'px');
|
1593
|
-
this.cancelBgBounded_ = (0, _util.animateWithClass)(this.adapter_, BG_BOUNDED_ACTIVE_FILL,
|
1594
|
-
this.cancelFgBounded_ = (0, _util.animateWithClass)(this.adapter_, FG_BOUNDED_ACTIVE_FILL,
|
1717
|
+
this.cancelBgBounded_ = (0, _util.animateWithClass)(this.adapter_, BG_BOUNDED_ACTIVE_FILL, (0, _animation.getCorrectEventName)(window, 'transitionend'));
|
1718
|
+
this.cancelFgBounded_ = (0, _util.animateWithClass)(this.adapter_, FG_BOUNDED_ACTIVE_FILL, (0, _animation.getCorrectEventName)(window, 'animationend'));
|
1595
1719
|
}
|
1596
1720
|
}, {
|
1597
1721
|
key: 'destroy',
|
@@ -1696,7 +1820,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1696
1820
|
exports.default = MDCRippleFoundation;
|
1697
1821
|
|
1698
1822
|
/***/ },
|
1699
|
-
/*
|
1823
|
+
/* 11 */
|
1700
1824
|
/***/ function(module, exports) {
|
1701
1825
|
|
1702
1826
|
'use strict';
|
@@ -1746,15 +1870,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1746
1870
|
VAR_TOP: '--' + ROOT + '-top',
|
1747
1871
|
VAR_XF_ORIGIN_X: '--' + ROOT + '-xfo-x',
|
1748
1872
|
VAR_XF_ORIGIN_Y: '--' + ROOT + '-xfo-y',
|
1749
|
-
VAR_FG_APPROX_XF: '--' + ROOT + '-fg-approx-xf'
|
1750
|
-
ANIMATION_END_EVENT: function () {
|
1751
|
-
var d = document.createElement('div');
|
1752
|
-
return 'webkitAnimation' in d.style ? 'webkitAnimationEnd' : 'animationend';
|
1753
|
-
}(),
|
1754
|
-
TRANSITION_END_EVENT: function () {
|
1755
|
-
var d = document.createElement('div');
|
1756
|
-
return 'webkitTransition' in d.style ? 'webkitTransitionEnd' : 'transitionend';
|
1757
|
-
}()
|
1873
|
+
VAR_FG_APPROX_XF: '--' + ROOT + '-fg-approx-xf'
|
1758
1874
|
};
|
1759
1875
|
|
1760
1876
|
var numbers = exports.numbers = {
|
@@ -1766,7 +1882,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1766
1882
|
};
|
1767
1883
|
|
1768
1884
|
/***/ },
|
1769
|
-
/*
|
1885
|
+
/* 12 */
|
1770
1886
|
/***/ function(module, exports) {
|
1771
1887
|
|
1772
1888
|
'use strict';
|
@@ -1850,7 +1966,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1850
1966
|
}
|
1851
1967
|
|
1852
1968
|
/***/ },
|
1853
|
-
/*
|
1969
|
+
/* 13 */
|
1854
1970
|
/***/ function(module, exports, __webpack_require__) {
|
1855
1971
|
|
1856
1972
|
'use strict';
|
@@ -2094,7 +2210,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2094
2210
|
}
|
2095
2211
|
|
2096
2212
|
/***/ },
|
2097
|
-
/*
|
2213
|
+
/* 14 */
|
2098
2214
|
/***/ function(module, exports, __webpack_require__) {
|
2099
2215
|
|
2100
2216
|
'use strict';
|
@@ -2112,9 +2228,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2112
2228
|
|
2113
2229
|
var _base = __webpack_require__(1);
|
2114
2230
|
|
2115
|
-
var _ripple = __webpack_require__(
|
2231
|
+
var _ripple = __webpack_require__(9);
|
2116
2232
|
|
2117
|
-
var _foundation = __webpack_require__(
|
2233
|
+
var _foundation = __webpack_require__(15);
|
2118
2234
|
|
2119
2235
|
var _foundation2 = _interopRequireDefault(_foundation);
|
2120
2236
|
|
@@ -2256,7 +2372,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2256
2372
|
}(_base.MDCComponent);
|
2257
2373
|
|
2258
2374
|
/***/ },
|
2259
|
-
/*
|
2375
|
+
/* 15 */
|
2260
2376
|
/***/ function(module, exports, __webpack_require__) {
|
2261
2377
|
|
2262
2378
|
'use strict';
|
@@ -2367,7 +2483,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2367
2483
|
exports.default = MDCRadioFoundation;
|
2368
2484
|
|
2369
2485
|
/***/ },
|
2370
|
-
/*
|
2486
|
+
/* 16 */
|
2371
2487
|
/***/ function(module, exports, __webpack_require__) {
|
2372
2488
|
|
2373
2489
|
'use strict';
|
@@ -2376,7 +2492,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2376
2492
|
value: true
|
2377
2493
|
});
|
2378
2494
|
|
2379
|
-
var _temporary = __webpack_require__(
|
2495
|
+
var _temporary = __webpack_require__(17);
|
2380
2496
|
|
2381
2497
|
Object.defineProperty(exports, 'MDCTemporaryDrawer', {
|
2382
2498
|
enumerable: true,
|
@@ -2392,7 +2508,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2392
2508
|
});
|
2393
2509
|
|
2394
2510
|
/***/ },
|
2395
|
-
/*
|
2511
|
+
/* 17 */
|
2396
2512
|
/***/ function(module, exports, __webpack_require__) {
|
2397
2513
|
|
2398
2514
|
'use strict';
|
@@ -2406,11 +2522,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2406
2522
|
|
2407
2523
|
var _base = __webpack_require__(1);
|
2408
2524
|
|
2409
|
-
var _foundation = __webpack_require__(
|
2525
|
+
var _foundation = __webpack_require__(18);
|
2410
2526
|
|
2411
2527
|
var _foundation2 = _interopRequireDefault(_foundation);
|
2412
2528
|
|
2413
|
-
var _util = __webpack_require__(
|
2529
|
+
var _util = __webpack_require__(20);
|
2414
2530
|
|
2415
2531
|
var util = _interopRequireWildcard(_util);
|
2416
2532
|
|
@@ -2558,7 +2674,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2558
2674
|
}(_base.MDCComponent);
|
2559
2675
|
|
2560
2676
|
/***/ },
|
2561
|
-
/*
|
2677
|
+
/* 18 */
|
2562
2678
|
/***/ function(module, exports, __webpack_require__) {
|
2563
2679
|
|
2564
2680
|
'use strict';
|
@@ -2573,7 +2689,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2573
2689
|
|
2574
2690
|
var _base = __webpack_require__(1);
|
2575
2691
|
|
2576
|
-
var _constants = __webpack_require__(
|
2692
|
+
var _constants = __webpack_require__(19);
|
2577
2693
|
|
2578
2694
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2579
2695
|
|
@@ -2608,11 +2724,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2608
2724
|
get: function get() {
|
2609
2725
|
return _constants.strings;
|
2610
2726
|
}
|
2611
|
-
}, {
|
2612
|
-
key: 'numbers',
|
2613
|
-
get: function get() {
|
2614
|
-
return _constants.numbers;
|
2615
|
-
}
|
2616
2727
|
}, {
|
2617
2728
|
key: 'defaultAdapter',
|
2618
2729
|
get: function get() {
|
@@ -2893,7 +3004,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2893
3004
|
exports.default = MDCTemporaryDrawerFoundation;
|
2894
3005
|
|
2895
3006
|
/***/ },
|
2896
|
-
/*
|
3007
|
+
/* 19 */
|
2897
3008
|
/***/ function(module, exports) {
|
2898
3009
|
|
2899
3010
|
'use strict';
|
@@ -2933,7 +3044,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2933
3044
|
};
|
2934
3045
|
|
2935
3046
|
/***/ },
|
2936
|
-
/*
|
3047
|
+
/* 20 */
|
2937
3048
|
/***/ function(module, exports) {
|
2938
3049
|
|
2939
3050
|
'use strict';
|
@@ -3055,7 +3166,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3055
3166
|
}
|
3056
3167
|
|
3057
3168
|
/***/ },
|
3058
|
-
/*
|
3169
|
+
/* 21 */
|
3059
3170
|
/***/ function(module, exports, __webpack_require__) {
|
3060
3171
|
|
3061
3172
|
'use strict';
|
@@ -3071,7 +3182,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3071
3182
|
|
3072
3183
|
var _base = __webpack_require__(1);
|
3073
3184
|
|
3074
|
-
var _foundation = __webpack_require__(
|
3185
|
+
var _foundation = __webpack_require__(22);
|
3075
3186
|
|
3076
3187
|
var _foundation2 = _interopRequireDefault(_foundation);
|
3077
3188
|
|
@@ -3238,7 +3349,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3238
3349
|
}(_base.MDCComponent);
|
3239
3350
|
|
3240
3351
|
/***/ },
|
3241
|
-
/*
|
3352
|
+
/* 22 */
|
3242
3353
|
/***/ function(module, exports, __webpack_require__) {
|
3243
3354
|
|
3244
3355
|
'use strict';
|
@@ -3464,7 +3575,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3464
3575
|
exports.default = MDCTextfieldFoundation;
|
3465
3576
|
|
3466
3577
|
/***/ },
|
3467
|
-
/*
|
3578
|
+
/* 23 */
|
3468
3579
|
/***/ function(module, exports, __webpack_require__) {
|
3469
3580
|
|
3470
3581
|
'use strict';
|
@@ -3478,10 +3589,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3478
3589
|
|
3479
3590
|
var _base = __webpack_require__(1);
|
3480
3591
|
|
3481
|
-
var _foundation = __webpack_require__(
|
3592
|
+
var _foundation = __webpack_require__(24);
|
3482
3593
|
|
3483
3594
|
var _foundation2 = _interopRequireDefault(_foundation);
|
3484
3595
|
|
3596
|
+
var _animation = __webpack_require__(5);
|
3597
|
+
|
3485
3598
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
3486
3599
|
|
3487
3600
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -3526,7 +3639,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3526
3639
|
var _this2 = this;
|
3527
3640
|
|
3528
3641
|
var _MDCSnackbarFoundatio = _foundation2.default.strings,
|
3529
|
-
TRANS_END_EVENT_NAME = _MDCSnackbarFoundatio.TRANS_END_EVENT_NAME,
|
3530
3642
|
TEXT_SELECTOR = _MDCSnackbarFoundatio.TEXT_SELECTOR,
|
3531
3643
|
ACTION_BUTTON_SELECTOR = _MDCSnackbarFoundatio.ACTION_BUTTON_SELECTOR;
|
3532
3644
|
|
@@ -3570,10 +3682,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3570
3682
|
return getActionButton().removeEventListener('click', handler);
|
3571
3683
|
},
|
3572
3684
|
registerTransitionEndHandler: function registerTransitionEndHandler(handler) {
|
3573
|
-
return _this2.root_.addEventListener(
|
3685
|
+
return _this2.root_.addEventListener((0, _animation.getCorrectEventName)(window, 'transitionend'), handler);
|
3574
3686
|
},
|
3575
3687
|
deregisterTransitionEndHandler: function deregisterTransitionEndHandler(handler) {
|
3576
|
-
return _this2.root_.removeEventListener(
|
3688
|
+
return _this2.root_.removeEventListener((0, _animation.getCorrectEventName)(window, 'transitionend'), handler);
|
3577
3689
|
}
|
3578
3690
|
});
|
3579
3691
|
}
|
@@ -3588,7 +3700,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3588
3700
|
}(_base.MDCComponent);
|
3589
3701
|
|
3590
3702
|
/***/ },
|
3591
|
-
/*
|
3703
|
+
/* 24 */
|
3592
3704
|
/***/ function(module, exports, __webpack_require__) {
|
3593
3705
|
|
3594
3706
|
'use strict';
|
@@ -3603,7 +3715,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3603
3715
|
|
3604
3716
|
var _base = __webpack_require__(1);
|
3605
3717
|
|
3606
|
-
var _constants = __webpack_require__(
|
3718
|
+
var _constants = __webpack_require__(25);
|
3607
3719
|
|
3608
3720
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3609
3721
|
|
@@ -3798,7 +3910,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3798
3910
|
exports.default = MDCSnackbarFoundation;
|
3799
3911
|
|
3800
3912
|
/***/ },
|
3801
|
-
/*
|
3913
|
+
/* 25 */
|
3802
3914
|
/***/ function(module, exports) {
|
3803
3915
|
|
3804
3916
|
'use strict';
|
@@ -3835,15 +3947,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3835
3947
|
};
|
3836
3948
|
|
3837
3949
|
var strings = exports.strings = {
|
3838
|
-
get TRANS_END_EVENT_NAME() {
|
3839
|
-
var el = document.createElement('div');
|
3840
|
-
// NOTE: We can immediately assume that the prefix is 'webkit' in browsers that don't
|
3841
|
-
// support unprefixed transtions since the only browsers up to two major versions back that
|
3842
|
-
// don't support unprefixed names are mobile Safari and Android native browser, both of
|
3843
|
-
// which use the 'webkit' prefix.
|
3844
|
-
return 'transition' in el.style ? 'transitionend' : 'webkitTransitionEnd';
|
3845
|
-
},
|
3846
|
-
|
3847
3950
|
get TEXT_SELECTOR() {
|
3848
3951
|
return '.' + cssClasses.TEXT;
|
3849
3952
|
},
|
@@ -3862,7 +3965,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3862
3965
|
};
|
3863
3966
|
|
3864
3967
|
/***/ },
|
3865
|
-
/*
|
3968
|
+
/* 26 */
|
3866
3969
|
/***/ function(module, exports, __webpack_require__) {
|
3867
3970
|
|
3868
3971
|
'use strict';
|
@@ -3871,7 +3974,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3871
3974
|
value: true
|
3872
3975
|
});
|
3873
3976
|
|
3874
|
-
var _simple = __webpack_require__(
|
3977
|
+
var _simple = __webpack_require__(27);
|
3875
3978
|
|
3876
3979
|
Object.defineProperty(exports, 'MDCSimpleMenu', {
|
3877
3980
|
enumerable: true,
|
@@ -3887,7 +3990,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3887
3990
|
});
|
3888
3991
|
|
3889
3992
|
/***/ },
|
3890
|
-
/*
|
3993
|
+
/* 27 */
|
3891
3994
|
/***/ function(module, exports, __webpack_require__) {
|
3892
3995
|
|
3893
3996
|
'use strict';
|
@@ -3901,11 +4004,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3901
4004
|
|
3902
4005
|
var _base = __webpack_require__(1);
|
3903
4006
|
|
3904
|
-
var _foundation = __webpack_require__(
|
4007
|
+
var _foundation = __webpack_require__(28);
|
3905
4008
|
|
3906
4009
|
var _foundation2 = _interopRequireDefault(_foundation);
|
3907
4010
|
|
3908
|
-
var _util = __webpack_require__(
|
4011
|
+
var _util = __webpack_require__(30);
|
3909
4012
|
|
3910
4013
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
3911
4014
|
|
@@ -4107,7 +4210,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4107
4210
|
}(_base.MDCComponent);
|
4108
4211
|
|
4109
4212
|
/***/ },
|
4110
|
-
/*
|
4213
|
+
/* 28 */
|
4111
4214
|
/***/ function(module, exports, __webpack_require__) {
|
4112
4215
|
|
4113
4216
|
'use strict';
|
@@ -4122,9 +4225,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4122
4225
|
|
4123
4226
|
var _base = __webpack_require__(1);
|
4124
4227
|
|
4125
|
-
var _constants = __webpack_require__(
|
4228
|
+
var _constants = __webpack_require__(29);
|
4126
4229
|
|
4127
|
-
var _util = __webpack_require__(
|
4230
|
+
var _util = __webpack_require__(30);
|
4128
4231
|
|
4129
4232
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4130
4233
|
|
@@ -4647,7 +4750,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4647
4750
|
exports.default = MDCSimpleMenuFoundation;
|
4648
4751
|
|
4649
4752
|
/***/ },
|
4650
|
-
/*
|
4753
|
+
/* 29 */
|
4651
4754
|
/***/ function(module, exports) {
|
4652
4755
|
|
4653
4756
|
'use strict';
|
@@ -4705,7 +4808,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4705
4808
|
};
|
4706
4809
|
|
4707
4810
|
/***/ },
|
4708
|
-
/*
|
4811
|
+
/* 30 */
|
4709
4812
|
/***/ function(module, exports) {
|
4710
4813
|
|
4711
4814
|
'use strict';
|
@@ -4843,7 +4946,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4843
4946
|
}
|
4844
4947
|
|
4845
4948
|
/***/ },
|
4846
|
-
/*
|
4949
|
+
/* 31 */
|
4847
4950
|
/***/ function(module, exports, __webpack_require__) {
|
4848
4951
|
|
4849
4952
|
'use strict';
|
@@ -4857,9 +4960,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
4857
4960
|
|
4858
4961
|
var _base = __webpack_require__(1);
|
4859
4962
|
|
4860
|
-
var _menu = __webpack_require__(
|
4963
|
+
var _menu = __webpack_require__(26);
|
4861
4964
|
|
4862
|
-
var _foundation = __webpack_require__(
|
4965
|
+
var _foundation = __webpack_require__(32);
|
4863
4966
|
|
4864
4967
|
var _foundation2 = _interopRequireDefault(_foundation);
|
4865
4968
|
|
@@ -5068,7 +5171,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5068
5171
|
}(_base.MDCComponent);
|
5069
5172
|
|
5070
5173
|
/***/ },
|
5071
|
-
/*
|
5174
|
+
/* 32 */
|
5072
5175
|
/***/ function(module, exports, __webpack_require__) {
|
5073
5176
|
|
5074
5177
|
'use strict';
|
@@ -5402,7 +5505,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5402
5505
|
exports.default = MDCSelectFoundation;
|
5403
5506
|
|
5404
5507
|
/***/ },
|
5405
|
-
/*
|
5508
|
+
/* 33 */
|
5406
5509
|
/***/ function(module, exports) {
|
5407
5510
|
|
5408
5511
|
'use strict';
|
@@ -27,9 +27,11 @@
|
|
27
27
|
|
28
28
|
// postcss-bem-linter: define select
|
29
29
|
.mdc-select {
|
30
|
+
$dd-arrow-padding: 24px;
|
31
|
+
|
30
32
|
@include mdc-typography(subheading2);
|
31
33
|
@include mdc-theme-prop(color, text-primary-on-light);
|
32
|
-
@include mdc-rtl-reflexive-box(padding, right,
|
34
|
+
@include mdc-rtl-reflexive-box(padding, right, $dd-arrow-padding);
|
33
35
|
|
34
36
|
// Resets for <select> element
|
35
37
|
appearance: none;
|
@@ -41,6 +43,7 @@
|
|
41
43
|
display: inline-flex;
|
42
44
|
align-items: center;
|
43
45
|
justify-content: flex-start;
|
46
|
+
max-width: calc(100% - #{$dd-arrow-padding});
|
44
47
|
height: 32px;
|
45
48
|
transition:
|
46
49
|
mdc-animation-exit(border-bottom-color, 150ms),
|
@@ -95,6 +98,8 @@
|
|
95
98
|
transition:
|
96
99
|
mdc-animation-exit(opacity, 125ms),
|
97
100
|
mdc-animation-exit(transform, 125ms);
|
101
|
+
white-space: nowrap;
|
102
|
+
overflow: hidden;
|
98
103
|
}
|
99
104
|
}
|
100
105
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_components_web-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|