material_components_web-sass 0.21.1 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +486 -275
- data/vendor/assets/stylesheets/@material/button/_mixins.scss +4 -9
- data/vendor/assets/stylesheets/@material/button/_variables.scss +3 -0
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +7 -17
- data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +1 -1
- data/vendor/assets/stylesheets/@material/fab/_mixins.scss +6 -1
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +2 -1
- data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +1 -1
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +0 -1
- data/vendor/assets/stylesheets/@material/textfield/_mixins.scss +37 -0
- data/vendor/assets/stylesheets/@material/textfield/_variables.scss +44 -0
- data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +235 -210
- data/vendor/assets/stylesheets/@material/theme/_mixins.scss +35 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6802a4748e2a8cfbad7760012895f3f9d7a2b97
|
4
|
+
data.tar.gz: 4dfdfac374d46029a9111d85756c869f13e8f248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d111867607ffecaa5906ce4fabf8b819f6e8189b334724c9d611d0a0c5716f0196c022b78c271a6823b33c30b7227500cf2754fad00d1603e215224428d33b6
|
7
|
+
data.tar.gz: cd15490ca5f2e46a9b6b29689c9c41e68b61fc65872a8d6d2cc2e27bd0b0d6d573595e5d0e3e1a792bc56854b818bdc78bfb93cb74c35f544f9e957cb8cd7246
|
data/CHANGELOG.md
CHANGED
@@ -89,6 +89,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
89
89
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFoundation", function() { return __WEBPACK_IMPORTED_MODULE_0__foundation__["a"]; });
|
90
90
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCComponent", function() { return __WEBPACK_IMPORTED_MODULE_1__component__["a"]; });
|
91
91
|
/**
|
92
|
+
* @license
|
92
93
|
* Copyright 2016 Google Inc.
|
93
94
|
*
|
94
95
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -119,6 +120,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
119
120
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
120
121
|
|
121
122
|
/**
|
123
|
+
* @license
|
122
124
|
* Copyright 2016 Google Inc.
|
123
125
|
*
|
124
126
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -222,6 +224,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
222
224
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
223
225
|
|
224
226
|
/**
|
227
|
+
* @license
|
225
228
|
* Copyright 2016 Google Inc.
|
226
229
|
*
|
227
230
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -396,6 +399,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
396
399
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
397
400
|
|
398
401
|
/**
|
402
|
+
* @license
|
399
403
|
* Copyright 2017 Google Inc. All Rights Reserved.
|
400
404
|
*
|
401
405
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -428,6 +432,7 @@ var MDCSelectionControlState = void 0;
|
|
428
432
|
/**
|
429
433
|
* @record
|
430
434
|
*/
|
435
|
+
|
431
436
|
var MDCSelectionControl = function () {
|
432
437
|
function MDCSelectionControl() {
|
433
438
|
_classCallCheck(this, MDCSelectionControl);
|
@@ -443,6 +448,8 @@ var MDCSelectionControl = function () {
|
|
443
448
|
return MDCSelectionControl;
|
444
449
|
}();
|
445
450
|
|
451
|
+
|
452
|
+
|
446
453
|
/***/ }),
|
447
454
|
/* 4 */
|
448
455
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -451,9 +458,9 @@ var MDCSelectionControl = function () {
|
|
451
458
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
452
459
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRipple", function() { return MDCRipple; });
|
453
460
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
454
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
461
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(11);
|
455
462
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(20);
|
456
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
463
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(7);
|
457
464
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRippleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
458
465
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_3__util__; });
|
459
466
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -465,6 +472,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
465
472
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
466
473
|
|
467
474
|
/**
|
475
|
+
* @license
|
468
476
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
469
477
|
*
|
470
478
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -485,12 +493,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
485
493
|
|
486
494
|
|
487
495
|
|
488
|
-
|
489
|
-
|
490
|
-
|
491
496
|
/**
|
492
497
|
* @extends MDCComponent<!MDCRippleFoundation>
|
493
498
|
*/
|
499
|
+
|
494
500
|
var MDCRipple = function (_MDCComponent) {
|
495
501
|
_inherits(MDCRipple, _MDCComponent);
|
496
502
|
|
@@ -648,6 +654,7 @@ var MDCRipple = function (_MDCComponent) {
|
|
648
654
|
* @record
|
649
655
|
*/
|
650
656
|
|
657
|
+
|
651
658
|
var RippleCapableSurface = function RippleCapableSurface() {
|
652
659
|
_classCallCheck(this, RippleCapableSurface);
|
653
660
|
};
|
@@ -669,15 +676,18 @@ RippleCapableSurface.prototype.unbounded;
|
|
669
676
|
*/
|
670
677
|
RippleCapableSurface.prototype.disabled;
|
671
678
|
|
679
|
+
|
680
|
+
|
672
681
|
/***/ }),
|
673
682
|
/* 5 */
|
674
683
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
675
684
|
|
676
685
|
"use strict";
|
677
686
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return transformStyleProperties; });
|
678
|
-
/* harmony export (
|
679
|
-
/* harmony export (
|
687
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCorrectEventName; });
|
688
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCorrectPropertyName; });
|
680
689
|
/**
|
690
|
+
* @license
|
681
691
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
682
692
|
*
|
683
693
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -815,6 +825,8 @@ function getCorrectPropertyName(windowObj, eventType) {
|
|
815
825
|
return getAnimationName(windowObj, eventType);
|
816
826
|
}
|
817
827
|
|
828
|
+
|
829
|
+
|
818
830
|
/***/ }),
|
819
831
|
/* 6 */
|
820
832
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -847,163 +859,14 @@ function getCorrectPropertyName(windowObj, eventType) {
|
|
847
859
|
/* 7 */
|
848
860
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
849
861
|
|
850
|
-
"use strict";
|
851
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
852
|
-
|
853
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
854
|
-
|
855
|
-
/**
|
856
|
-
* Copyright 2016 Google Inc. All Rights Reserved.
|
857
|
-
*
|
858
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
859
|
-
* you may not use this file except in compliance with the License.
|
860
|
-
* You may obtain a copy of the License at
|
861
|
-
*
|
862
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
863
|
-
*
|
864
|
-
* Unless required by applicable law or agreed to in writing, software
|
865
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
866
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
867
|
-
* See the License for the specific language governing permissions and
|
868
|
-
* limitations under the License.
|
869
|
-
*/
|
870
|
-
|
871
|
-
/* eslint no-unused-vars: [2, {"args": "none"}] */
|
872
|
-
|
873
|
-
/**
|
874
|
-
* Adapter for MDC Ripple. Provides an interface for managing
|
875
|
-
* - classes
|
876
|
-
* - dom
|
877
|
-
* - CSS variables
|
878
|
-
* - position
|
879
|
-
* - dimensions
|
880
|
-
* - scroll position
|
881
|
-
* - event handlers
|
882
|
-
* - unbounded, active and disabled states
|
883
|
-
*
|
884
|
-
* Additionally, provides type information for the adapter to the Closure
|
885
|
-
* compiler.
|
886
|
-
*
|
887
|
-
* Implement this adapter for your framework of choice to delegate updates to
|
888
|
-
* the component in your framework of choice. See architecture documentation
|
889
|
-
* for more details.
|
890
|
-
* https://github.com/material-components/material-components-web/blob/master/docs/architecture.md
|
891
|
-
*
|
892
|
-
* @record
|
893
|
-
*/
|
894
|
-
var MDCRippleAdapter = function () {
|
895
|
-
function MDCRippleAdapter() {
|
896
|
-
_classCallCheck(this, MDCRippleAdapter);
|
897
|
-
}
|
898
|
-
|
899
|
-
_createClass(MDCRippleAdapter, [{
|
900
|
-
key: "browserSupportsCssVars",
|
901
|
-
|
902
|
-
/** @return {boolean} */
|
903
|
-
value: function browserSupportsCssVars() {}
|
904
|
-
|
905
|
-
/** @return {boolean} */
|
906
|
-
|
907
|
-
}, {
|
908
|
-
key: "isUnbounded",
|
909
|
-
value: function isUnbounded() {}
|
910
|
-
|
911
|
-
/** @return {boolean} */
|
912
|
-
|
913
|
-
}, {
|
914
|
-
key: "isSurfaceActive",
|
915
|
-
value: function isSurfaceActive() {}
|
916
|
-
|
917
|
-
/** @return {boolean} */
|
918
|
-
|
919
|
-
}, {
|
920
|
-
key: "isSurfaceDisabled",
|
921
|
-
value: function isSurfaceDisabled() {}
|
922
|
-
|
923
|
-
/** @param {string} className */
|
924
|
-
|
925
|
-
}, {
|
926
|
-
key: "addClass",
|
927
|
-
value: function addClass(className) {}
|
928
|
-
|
929
|
-
/** @param {string} className */
|
930
|
-
|
931
|
-
}, {
|
932
|
-
key: "removeClass",
|
933
|
-
value: function removeClass(className) {}
|
934
|
-
|
935
|
-
/**
|
936
|
-
* @param {string} evtType
|
937
|
-
* @param {!Function} handler
|
938
|
-
*/
|
939
|
-
|
940
|
-
}, {
|
941
|
-
key: "registerInteractionHandler",
|
942
|
-
value: function registerInteractionHandler(evtType, handler) {}
|
943
|
-
|
944
|
-
/**
|
945
|
-
* @param {string} evtType
|
946
|
-
* @param {!Function} handler
|
947
|
-
*/
|
948
|
-
|
949
|
-
}, {
|
950
|
-
key: "deregisterInteractionHandler",
|
951
|
-
value: function deregisterInteractionHandler(evtType, handler) {}
|
952
|
-
|
953
|
-
/**
|
954
|
-
* @param {!Function} handler
|
955
|
-
*/
|
956
|
-
|
957
|
-
}, {
|
958
|
-
key: "registerResizeHandler",
|
959
|
-
value: function registerResizeHandler(handler) {}
|
960
|
-
|
961
|
-
/**
|
962
|
-
* @param {!Function} handler
|
963
|
-
*/
|
964
|
-
|
965
|
-
}, {
|
966
|
-
key: "deregisterResizeHandler",
|
967
|
-
value: function deregisterResizeHandler(handler) {}
|
968
|
-
|
969
|
-
/**
|
970
|
-
* @param {string} varName
|
971
|
-
* @param {?number|string} value
|
972
|
-
*/
|
973
|
-
|
974
|
-
}, {
|
975
|
-
key: "updateCssVariable",
|
976
|
-
value: function updateCssVariable(varName, value) {}
|
977
|
-
|
978
|
-
/** @return {!ClientRect} */
|
979
|
-
|
980
|
-
}, {
|
981
|
-
key: "computeBoundingRect",
|
982
|
-
value: function computeBoundingRect() {}
|
983
|
-
|
984
|
-
/** @return {{x: number, y: number}} */
|
985
|
-
|
986
|
-
}, {
|
987
|
-
key: "getWindowPageOffset",
|
988
|
-
value: function getWindowPageOffset() {}
|
989
|
-
}]);
|
990
|
-
|
991
|
-
return MDCRippleAdapter;
|
992
|
-
}();
|
993
|
-
|
994
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (MDCRippleAdapter);
|
995
|
-
|
996
|
-
/***/ }),
|
997
|
-
/* 8 */
|
998
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
999
|
-
|
1000
862
|
"use strict";
|
1001
863
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1002
|
-
/* harmony export (
|
1003
|
-
/* harmony export (
|
1004
|
-
/* harmony export (
|
1005
|
-
/* harmony export (
|
864
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsCssVariables", function() { return supportsCssVariables; });
|
865
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyPassive", function() { return applyPassive; });
|
866
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMatchesProperty", function() { return getMatchesProperty; });
|
867
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNormalizedEventCoords", function() { return getNormalizedEventCoords; });
|
1006
868
|
/**
|
869
|
+
* @license
|
1007
870
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
1008
871
|
*
|
1009
872
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1058,6 +921,7 @@ function detectEdgePseudoVarBug(windowObj) {
|
|
1058
921
|
* @param {boolean=} forceRefresh
|
1059
922
|
* @return {boolean|undefined}
|
1060
923
|
*/
|
924
|
+
|
1061
925
|
function supportsCssVariables(windowObj) {
|
1062
926
|
var forceRefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
1063
927
|
|
@@ -1145,8 +1009,10 @@ function getNormalizedEventCoords(ev, pageOffset, clientRect) {
|
|
1145
1009
|
return { x: normalizedX, y: normalizedY };
|
1146
1010
|
}
|
1147
1011
|
|
1012
|
+
|
1013
|
+
|
1148
1014
|
/***/ }),
|
1149
|
-
/*
|
1015
|
+
/* 8 */
|
1150
1016
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1151
1017
|
|
1152
1018
|
"use strict";
|
@@ -1265,17 +1131,18 @@ function restoreElementTabState(el) {
|
|
1265
1131
|
}
|
1266
1132
|
|
1267
1133
|
/***/ }),
|
1268
|
-
/*
|
1134
|
+
/* 9 */
|
1269
1135
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1270
1136
|
|
1271
1137
|
"use strict";
|
1272
1138
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1273
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(
|
1139
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(10);
|
1274
1140
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__simple__ = __webpack_require__(54);
|
1275
1141
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__simple__["a"]; });
|
1276
1142
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenuFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__simple__["b"]; });
|
1277
1143
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_0__util__; });
|
1278
1144
|
/**
|
1145
|
+
* @license
|
1279
1146
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
1280
1147
|
*
|
1281
1148
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1296,14 +1163,14 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1296
1163
|
|
1297
1164
|
|
1298
1165
|
/***/ }),
|
1299
|
-
/*
|
1166
|
+
/* 10 */
|
1300
1167
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1301
1168
|
|
1302
1169
|
"use strict";
|
1303
1170
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1304
|
-
/* harmony export (
|
1305
|
-
/* harmony export (
|
1306
|
-
/* harmony export (
|
1171
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformPropertyName", function() { return getTransformPropertyName; });
|
1172
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clamp", function() { return clamp; });
|
1173
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bezierProgress", function() { return bezierProgress; });
|
1307
1174
|
/**
|
1308
1175
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
1309
1176
|
*
|
@@ -1462,6 +1329,159 @@ function solvePositionFromXValue_(xVal, x1, x2) {
|
|
1462
1329
|
return t;
|
1463
1330
|
}
|
1464
1331
|
|
1332
|
+
|
1333
|
+
|
1334
|
+
/***/ }),
|
1335
|
+
/* 11 */
|
1336
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1337
|
+
|
1338
|
+
"use strict";
|
1339
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
1340
|
+
|
1341
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1342
|
+
|
1343
|
+
/**
|
1344
|
+
* @license
|
1345
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
1346
|
+
*
|
1347
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1348
|
+
* you may not use this file except in compliance with the License.
|
1349
|
+
* You may obtain a copy of the License at
|
1350
|
+
*
|
1351
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1352
|
+
*
|
1353
|
+
* Unless required by applicable law or agreed to in writing, software
|
1354
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1355
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1356
|
+
* See the License for the specific language governing permissions and
|
1357
|
+
* limitations under the License.
|
1358
|
+
*/
|
1359
|
+
|
1360
|
+
/* eslint no-unused-vars: [2, {"args": "none"}] */
|
1361
|
+
|
1362
|
+
/**
|
1363
|
+
* Adapter for MDC Ripple. Provides an interface for managing
|
1364
|
+
* - classes
|
1365
|
+
* - dom
|
1366
|
+
* - CSS variables
|
1367
|
+
* - position
|
1368
|
+
* - dimensions
|
1369
|
+
* - scroll position
|
1370
|
+
* - event handlers
|
1371
|
+
* - unbounded, active and disabled states
|
1372
|
+
*
|
1373
|
+
* Additionally, provides type information for the adapter to the Closure
|
1374
|
+
* compiler.
|
1375
|
+
*
|
1376
|
+
* Implement this adapter for your framework of choice to delegate updates to
|
1377
|
+
* the component in your framework of choice. See architecture documentation
|
1378
|
+
* for more details.
|
1379
|
+
* https://github.com/material-components/material-components-web/blob/master/docs/architecture.md
|
1380
|
+
*
|
1381
|
+
* @record
|
1382
|
+
*/
|
1383
|
+
var MDCRippleAdapter = function () {
|
1384
|
+
function MDCRippleAdapter() {
|
1385
|
+
_classCallCheck(this, MDCRippleAdapter);
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
_createClass(MDCRippleAdapter, [{
|
1389
|
+
key: "browserSupportsCssVars",
|
1390
|
+
|
1391
|
+
/** @return {boolean} */
|
1392
|
+
value: function browserSupportsCssVars() {}
|
1393
|
+
|
1394
|
+
/** @return {boolean} */
|
1395
|
+
|
1396
|
+
}, {
|
1397
|
+
key: "isUnbounded",
|
1398
|
+
value: function isUnbounded() {}
|
1399
|
+
|
1400
|
+
/** @return {boolean} */
|
1401
|
+
|
1402
|
+
}, {
|
1403
|
+
key: "isSurfaceActive",
|
1404
|
+
value: function isSurfaceActive() {}
|
1405
|
+
|
1406
|
+
/** @return {boolean} */
|
1407
|
+
|
1408
|
+
}, {
|
1409
|
+
key: "isSurfaceDisabled",
|
1410
|
+
value: function isSurfaceDisabled() {}
|
1411
|
+
|
1412
|
+
/** @param {string} className */
|
1413
|
+
|
1414
|
+
}, {
|
1415
|
+
key: "addClass",
|
1416
|
+
value: function addClass(className) {}
|
1417
|
+
|
1418
|
+
/** @param {string} className */
|
1419
|
+
|
1420
|
+
}, {
|
1421
|
+
key: "removeClass",
|
1422
|
+
value: function removeClass(className) {}
|
1423
|
+
|
1424
|
+
/**
|
1425
|
+
* @param {string} evtType
|
1426
|
+
* @param {!Function} handler
|
1427
|
+
*/
|
1428
|
+
|
1429
|
+
}, {
|
1430
|
+
key: "registerInteractionHandler",
|
1431
|
+
value: function registerInteractionHandler(evtType, handler) {}
|
1432
|
+
|
1433
|
+
/**
|
1434
|
+
* @param {string} evtType
|
1435
|
+
* @param {!Function} handler
|
1436
|
+
*/
|
1437
|
+
|
1438
|
+
}, {
|
1439
|
+
key: "deregisterInteractionHandler",
|
1440
|
+
value: function deregisterInteractionHandler(evtType, handler) {}
|
1441
|
+
|
1442
|
+
/**
|
1443
|
+
* @param {!Function} handler
|
1444
|
+
*/
|
1445
|
+
|
1446
|
+
}, {
|
1447
|
+
key: "registerResizeHandler",
|
1448
|
+
value: function registerResizeHandler(handler) {}
|
1449
|
+
|
1450
|
+
/**
|
1451
|
+
* @param {!Function} handler
|
1452
|
+
*/
|
1453
|
+
|
1454
|
+
}, {
|
1455
|
+
key: "deregisterResizeHandler",
|
1456
|
+
value: function deregisterResizeHandler(handler) {}
|
1457
|
+
|
1458
|
+
/**
|
1459
|
+
* @param {string} varName
|
1460
|
+
* @param {?number|string} value
|
1461
|
+
*/
|
1462
|
+
|
1463
|
+
}, {
|
1464
|
+
key: "updateCssVariable",
|
1465
|
+
value: function updateCssVariable(varName, value) {}
|
1466
|
+
|
1467
|
+
/** @return {!ClientRect} */
|
1468
|
+
|
1469
|
+
}, {
|
1470
|
+
key: "computeBoundingRect",
|
1471
|
+
value: function computeBoundingRect() {}
|
1472
|
+
|
1473
|
+
/** @return {{x: number, y: number}} */
|
1474
|
+
|
1475
|
+
}, {
|
1476
|
+
key: "getWindowPageOffset",
|
1477
|
+
value: function getWindowPageOffset() {}
|
1478
|
+
}]);
|
1479
|
+
|
1480
|
+
return MDCRippleAdapter;
|
1481
|
+
}();
|
1482
|
+
|
1483
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (MDCRippleAdapter);
|
1484
|
+
|
1465
1485
|
/***/ }),
|
1466
1486
|
/* 12 */
|
1467
1487
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1908,7 +1928,10 @@ var strings = {
|
|
1908
1928
|
ARIA_HIDDEN: 'aria-hidden',
|
1909
1929
|
ROLE: 'role',
|
1910
1930
|
INPUT_SELECTOR: '.mdc-textfield__input',
|
1911
|
-
LABEL_SELECTOR: '.mdc-textfield__label'
|
1931
|
+
LABEL_SELECTOR: '.mdc-textfield__label',
|
1932
|
+
ICON_SELECTOR: '.mdc-textfield__icon',
|
1933
|
+
ICON_EVENT: 'MDCTextfield:icon',
|
1934
|
+
BOTTOM_LINE_SELECTOR: '.mdc-textfield__bottom-line'
|
1912
1935
|
};
|
1913
1936
|
|
1914
1937
|
var cssClasses = {
|
@@ -1920,7 +1943,11 @@ var cssClasses = {
|
|
1920
1943
|
HELPTEXT_PERSISTENT: 'mdc-textfield-helptext--persistent',
|
1921
1944
|
HELPTEXT_VALIDATION_MSG: 'mdc-textfield-helptext--validation-msg',
|
1922
1945
|
LABEL_FLOAT_ABOVE: 'mdc-textfield__label--float-above',
|
1923
|
-
|
1946
|
+
LABEL_SHAKE: 'mdc-textfield__label--shake',
|
1947
|
+
BOX: 'mdc-textfield--box',
|
1948
|
+
TEXT_FIELD_ICON: 'mdc-textfield__icon',
|
1949
|
+
TEXTAREA: 'mdc-textfield--textarea',
|
1950
|
+
BOTTOM_LINE_ACTIVE: 'mdc-textfield__bottom-line--active'
|
1924
1951
|
};
|
1925
1952
|
|
1926
1953
|
/***/ }),
|
@@ -1938,7 +1965,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1938
1965
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_grid_list__ = __webpack_require__(44);
|
1939
1966
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__material_icon_toggle__ = __webpack_require__(47);
|
1940
1967
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__material_linear_progress__ = __webpack_require__(51);
|
1941
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__material_menu__ = __webpack_require__(
|
1968
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__material_menu__ = __webpack_require__(9);
|
1942
1969
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__material_radio__ = __webpack_require__(58);
|
1943
1970
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ripple__ = __webpack_require__(4);
|
1944
1971
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__material_select__ = __webpack_require__(62);
|
@@ -2138,7 +2165,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
2138
2165
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_selection_control__ = __webpack_require__(3);
|
2139
2166
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(22);
|
2140
2167
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ripple__ = __webpack_require__(4);
|
2141
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ripple_util__ = __webpack_require__(
|
2168
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ripple_util__ = __webpack_require__(7);
|
2142
2169
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCCheckboxFoundation", function() { return __WEBPACK_IMPORTED_MODULE_3__foundation__["a"]; });
|
2143
2170
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
2144
2171
|
|
@@ -2153,6 +2180,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
2153
2180
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
2154
2181
|
|
2155
2182
|
/**
|
2183
|
+
* @license
|
2156
2184
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
2157
2185
|
*
|
2158
2186
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -2177,12 +2205,11 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
2177
2205
|
|
2178
2206
|
|
2179
2207
|
|
2180
|
-
|
2181
|
-
|
2182
2208
|
/**
|
2183
2209
|
* @extends MDCComponent<!MDCCheckboxFoundation>
|
2184
2210
|
* @implements {MDCSelectionControl}
|
2185
2211
|
*/
|
2212
|
+
|
2186
2213
|
var MDCCheckbox = function (_MDCComponent) {
|
2187
2214
|
_inherits(MDCCheckbox, _MDCComponent);
|
2188
2215
|
|
@@ -2381,15 +2408,17 @@ var MDCCheckbox = function (_MDCComponent) {
|
|
2381
2408
|
return MDCCheckbox;
|
2382
2409
|
}(__WEBPACK_IMPORTED_MODULE_1__material_base_component__["a" /* default */]);
|
2383
2410
|
|
2411
|
+
|
2412
|
+
|
2384
2413
|
/***/ }),
|
2385
2414
|
/* 20 */
|
2386
2415
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2387
2416
|
|
2388
2417
|
"use strict";
|
2389
2418
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(1);
|
2390
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
2419
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(11);
|
2391
2420
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(21);
|
2392
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
2421
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(7);
|
2393
2422
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
2394
2423
|
|
2395
2424
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -2401,6 +2430,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
2401
2430
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
2402
2431
|
|
2403
2432
|
/**
|
2433
|
+
* @license
|
2404
2434
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
2405
2435
|
*
|
2406
2436
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -3036,6 +3066,7 @@ var MDCRippleFoundation = function (_MDCFoundation) {
|
|
3036
3066
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return strings; });
|
3037
3067
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return numbers; });
|
3038
3068
|
/**
|
3069
|
+
* @license
|
3039
3070
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
3040
3071
|
*
|
3041
3072
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -3081,6 +3112,8 @@ var numbers = {
|
|
3081
3112
|
FG_DEACTIVATION_MS: 83
|
3082
3113
|
};
|
3083
3114
|
|
3115
|
+
|
3116
|
+
|
3084
3117
|
/***/ }),
|
3085
3118
|
/* 22 */
|
3086
3119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -3101,6 +3134,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
3101
3134
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
3102
3135
|
|
3103
3136
|
/**
|
3137
|
+
* @license
|
3104
3138
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
3105
3139
|
*
|
3106
3140
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -3450,11 +3484,12 @@ var MDCCheckboxFoundation = function (_MDCFoundation) {
|
|
3450
3484
|
*/
|
3451
3485
|
|
3452
3486
|
|
3453
|
-
/* harmony default export */ __webpack_exports__["a"] = (MDCCheckboxFoundation);
|
3454
3487
|
function validDescriptor(inputPropDesc) {
|
3455
3488
|
return !!inputPropDesc && typeof inputPropDesc.set === 'function';
|
3456
3489
|
}
|
3457
3490
|
|
3491
|
+
/* harmony default export */ __webpack_exports__["a"] = (MDCCheckboxFoundation);
|
3492
|
+
|
3458
3493
|
/***/ }),
|
3459
3494
|
/* 23 */
|
3460
3495
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -3466,6 +3501,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
3466
3501
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3467
3502
|
|
3468
3503
|
/**
|
3504
|
+
* @license
|
3469
3505
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
3470
3506
|
*
|
3471
3507
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -3574,6 +3610,7 @@ var MDCCheckboxAdapter = function () {
|
|
3574
3610
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return strings; });
|
3575
3611
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return numbers; });
|
3576
3612
|
/**
|
3613
|
+
* @license
|
3577
3614
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
3578
3615
|
*
|
3579
3616
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -3620,6 +3657,8 @@ var numbers = {
|
|
3620
3657
|
ANIM_END_LATCH_MS: 100
|
3621
3658
|
};
|
3622
3659
|
|
3660
|
+
|
3661
|
+
|
3623
3662
|
/***/ }),
|
3624
3663
|
/* 25 */
|
3625
3664
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -4331,13 +4370,16 @@ module.exports = focusTrap;
|
|
4331
4370
|
/* 30 */
|
4332
4371
|
/***/ (function(module, exports) {
|
4333
4372
|
|
4334
|
-
module.exports = function(el) {
|
4373
|
+
module.exports = function(el, options) {
|
4374
|
+
options = options || {};
|
4375
|
+
|
4376
|
+
var elementDocument = el.ownerDocument;
|
4335
4377
|
var basicTabbables = [];
|
4336
4378
|
var orderedTabbables = [];
|
4337
4379
|
|
4338
4380
|
// A node is "available" if
|
4339
4381
|
// - it's computed style
|
4340
|
-
var isUnavailable = createIsUnavailable();
|
4382
|
+
var isUnavailable = createIsUnavailable(elementDocument);
|
4341
4383
|
|
4342
4384
|
var candidateSelectors = [
|
4343
4385
|
'input',
|
@@ -4350,6 +4392,19 @@ module.exports = function(el) {
|
|
4350
4392
|
|
4351
4393
|
var candidates = el.querySelectorAll(candidateSelectors);
|
4352
4394
|
|
4395
|
+
if (options.includeContainer) {
|
4396
|
+
var matches = Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
4397
|
+
|
4398
|
+
if (
|
4399
|
+
candidateSelectors.some(function(candidateSelector) {
|
4400
|
+
return matches.call(el, candidateSelector);
|
4401
|
+
})
|
4402
|
+
) {
|
4403
|
+
candidates = Array.prototype.slice.apply(candidates);
|
4404
|
+
candidates.unshift(el);
|
4405
|
+
}
|
4406
|
+
}
|
4407
|
+
|
4353
4408
|
var candidate, candidateIndex;
|
4354
4409
|
for (var i = 0, l = candidates.length; i < l; i++) {
|
4355
4410
|
candidate = candidates[i];
|
@@ -4359,7 +4414,7 @@ module.exports = function(el) {
|
|
4359
4414
|
candidateIndex < 0
|
4360
4415
|
|| (candidate.tagName === 'INPUT' && candidate.type === 'hidden')
|
4361
4416
|
|| candidate.disabled
|
4362
|
-
|| isUnavailable(candidate)
|
4417
|
+
|| isUnavailable(candidate, elementDocument)
|
4363
4418
|
) {
|
4364
4419
|
continue;
|
4365
4420
|
}
|
@@ -4368,6 +4423,7 @@ module.exports = function(el) {
|
|
4368
4423
|
basicTabbables.push(candidate);
|
4369
4424
|
} else {
|
4370
4425
|
orderedTabbables.push({
|
4426
|
+
index: i,
|
4371
4427
|
tabIndex: candidateIndex,
|
4372
4428
|
node: candidate,
|
4373
4429
|
});
|
@@ -4376,7 +4432,7 @@ module.exports = function(el) {
|
|
4376
4432
|
|
4377
4433
|
var tabbableNodes = orderedTabbables
|
4378
4434
|
.sort(function(a, b) {
|
4379
|
-
return a.tabIndex - b.tabIndex;
|
4435
|
+
return a.tabIndex === b.tabIndex ? a.index - b.index : a.tabIndex - b.tabIndex;
|
4380
4436
|
})
|
4381
4437
|
.map(function(a) {
|
4382
4438
|
return a.node
|
@@ -4387,7 +4443,7 @@ module.exports = function(el) {
|
|
4387
4443
|
return tabbableNodes;
|
4388
4444
|
}
|
4389
4445
|
|
4390
|
-
function createIsUnavailable() {
|
4446
|
+
function createIsUnavailable(elementDocument) {
|
4391
4447
|
// Node cache must be refreshed on every check, in case
|
4392
4448
|
// the content of the element has changed
|
4393
4449
|
var isOffCache = [];
|
@@ -4398,14 +4454,14 @@ function createIsUnavailable() {
|
|
4398
4454
|
// "off" state, so we need to recursively check parents.
|
4399
4455
|
|
4400
4456
|
function isOff(node, nodeComputedStyle) {
|
4401
|
-
if (node ===
|
4457
|
+
if (node === elementDocument.documentElement) return false;
|
4402
4458
|
|
4403
4459
|
// Find the cached node (Array.prototype.find not available in IE9)
|
4404
4460
|
for (var i = 0, length = isOffCache.length; i < length; i++) {
|
4405
4461
|
if (isOffCache[i][0] === node) return isOffCache[i][1];
|
4406
4462
|
}
|
4407
4463
|
|
4408
|
-
nodeComputedStyle = nodeComputedStyle ||
|
4464
|
+
nodeComputedStyle = nodeComputedStyle || elementDocument.defaultView.getComputedStyle(node);
|
4409
4465
|
|
4410
4466
|
var result = false;
|
4411
4467
|
|
@@ -4421,9 +4477,9 @@ function createIsUnavailable() {
|
|
4421
4477
|
}
|
4422
4478
|
|
4423
4479
|
return function isUnavailable(node) {
|
4424
|
-
if (node ===
|
4480
|
+
if (node === elementDocument.documentElement) return false;
|
4425
4481
|
|
4426
|
-
var computedStyle =
|
4482
|
+
var computedStyle = elementDocument.defaultView.getComputedStyle(node);
|
4427
4483
|
|
4428
4484
|
if (isOff(node, computedStyle)) return true;
|
4429
4485
|
|
@@ -4438,7 +4494,7 @@ function createIsUnavailable() {
|
|
4438
4494
|
|
4439
4495
|
"use strict";
|
4440
4496
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
4441
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(
|
4497
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(8);
|
4442
4498
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__temporary__ = __webpack_require__(32);
|
4443
4499
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawer", function() { return __WEBPACK_IMPORTED_MODULE_1__temporary__["a"]; });
|
4444
4500
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawerFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__temporary__["b"]; });
|
@@ -4475,7 +4531,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
4475
4531
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTemporaryDrawer; });
|
4476
4532
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
4477
4533
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(33);
|
4478
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(
|
4534
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(8);
|
4479
4535
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
4480
4536
|
/* unused harmony reexport util */
|
4481
4537
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -5178,7 +5234,7 @@ var strings = {
|
|
5178
5234
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCPersistentDrawer; });
|
5179
5235
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
5180
5236
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(38);
|
5181
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(
|
5237
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(8);
|
5182
5238
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
5183
5239
|
/* unused harmony reexport util */
|
5184
5240
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -5465,6 +5521,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
5465
5521
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
5466
5522
|
|
5467
5523
|
/**
|
5524
|
+
* @license
|
5468
5525
|
* Copyright 2017 Google Inc. All Rights Reserved.
|
5469
5526
|
*
|
5470
5527
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -5486,11 +5543,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
5486
5543
|
|
5487
5544
|
/* eslint-enable no-unused-vars */
|
5488
5545
|
|
5489
|
-
|
5490
|
-
|
5491
5546
|
/**
|
5492
5547
|
* @extends MDCComponent<!MDCFormFieldFoundation>
|
5493
5548
|
*/
|
5549
|
+
|
5494
5550
|
var MDCFormField = function (_MDCComponent) {
|
5495
5551
|
_inherits(MDCFormField, _MDCComponent);
|
5496
5552
|
|
@@ -5577,6 +5633,8 @@ var MDCFormField = function (_MDCComponent) {
|
|
5577
5633
|
return MDCFormField;
|
5578
5634
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
5579
5635
|
|
5636
|
+
|
5637
|
+
|
5580
5638
|
/***/ }),
|
5581
5639
|
/* 41 */
|
5582
5640
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -5596,6 +5654,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
5596
5654
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
5597
5655
|
|
5598
5656
|
/**
|
5657
|
+
* @license
|
5599
5658
|
* Copyright 2017 Google Inc. All Rights Reserved.
|
5600
5659
|
*
|
5601
5660
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -5704,6 +5763,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
5704
5763
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
5705
5764
|
|
5706
5765
|
/**
|
5766
|
+
* @license
|
5707
5767
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
5708
5768
|
*
|
5709
5769
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -5779,6 +5839,7 @@ var MDCFormFieldAdapter = function () {
|
|
5779
5839
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
5780
5840
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
5781
5841
|
/**
|
5842
|
+
* @license
|
5782
5843
|
* Copyright 2017 Google Inc. All Rights Reserved.
|
5783
5844
|
*
|
5784
5845
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -5804,6 +5865,8 @@ var strings = {
|
|
5804
5865
|
LABEL_SELECTOR: '.mdc-form-field > label'
|
5805
5866
|
};
|
5806
5867
|
|
5868
|
+
|
5869
|
+
|
5807
5870
|
/***/ }),
|
5808
5871
|
/* 44 */
|
5809
5872
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -6045,8 +6108,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
6045
6108
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggle", function() { return MDCIconToggle; });
|
6046
6109
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
6047
6110
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(48);
|
6048
|
-
/* harmony import */ var
|
6049
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_ripple__ = __webpack_require__(4);
|
6111
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ripple__ = __webpack_require__(4);
|
6050
6112
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
6051
6113
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
6052
6114
|
|
@@ -6061,6 +6123,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
6061
6123
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
6062
6124
|
|
6063
6125
|
/**
|
6126
|
+
* @license
|
6064
6127
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
6065
6128
|
*
|
6066
6129
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -6078,16 +6141,12 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
6078
6141
|
|
6079
6142
|
|
6080
6143
|
|
6081
|
-
/* eslint-disable no-unused-vars */
|
6082
|
-
|
6083
|
-
/* eslint-enable no-unused-vars */
|
6084
|
-
|
6085
|
-
|
6086
6144
|
|
6087
6145
|
|
6088
6146
|
/**
|
6089
6147
|
* @extends {MDCComponent<!MDCIconToggleFoundation>}
|
6090
6148
|
*/
|
6149
|
+
|
6091
6150
|
var MDCIconToggle = function (_MDCComponent) {
|
6092
6151
|
_inherits(MDCIconToggle, _MDCComponent);
|
6093
6152
|
|
@@ -6128,7 +6187,7 @@ var MDCIconToggle = function (_MDCComponent) {
|
|
6128
6187
|
value: function initRipple_() {
|
6129
6188
|
var _this2 = this;
|
6130
6189
|
|
6131
|
-
var adapter = _extends(
|
6190
|
+
var adapter = _extends(__WEBPACK_IMPORTED_MODULE_2__material_ripple__["MDCRipple"].createAdapter(this), {
|
6132
6191
|
isUnbounded: function isUnbounded() {
|
6133
6192
|
return true;
|
6134
6193
|
},
|
@@ -6152,8 +6211,8 @@ var MDCIconToggle = function (_MDCComponent) {
|
|
6152
6211
|
};
|
6153
6212
|
}
|
6154
6213
|
});
|
6155
|
-
var foundation = new
|
6156
|
-
return new
|
6214
|
+
var foundation = new __WEBPACK_IMPORTED_MODULE_2__material_ripple__["MDCRippleFoundation"](adapter);
|
6215
|
+
return new __WEBPACK_IMPORTED_MODULE_2__material_ripple__["MDCRipple"](this.root_, foundation);
|
6157
6216
|
}
|
6158
6217
|
}, {
|
6159
6218
|
key: 'destroy',
|
@@ -6258,12 +6317,13 @@ var MDCIconToggle = function (_MDCComponent) {
|
|
6258
6317
|
return MDCIconToggle;
|
6259
6318
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
6260
6319
|
|
6320
|
+
|
6321
|
+
|
6261
6322
|
/***/ }),
|
6262
6323
|
/* 48 */
|
6263
6324
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6264
6325
|
|
6265
6326
|
"use strict";
|
6266
|
-
/* unused harmony export KeyboardKey */
|
6267
6327
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(1);
|
6268
6328
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(49);
|
6269
6329
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(50);
|
@@ -6278,6 +6338,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
6278
6338
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
6279
6339
|
|
6280
6340
|
/**
|
6341
|
+
* @license
|
6281
6342
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
6282
6343
|
*
|
6283
6344
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -6538,7 +6599,6 @@ var MDCIconToggleFoundation = function (_MDCFoundation) {
|
|
6538
6599
|
*/
|
6539
6600
|
|
6540
6601
|
|
6541
|
-
/* harmony default export */ __webpack_exports__["a"] = (MDCIconToggleFoundation);
|
6542
6602
|
var KeyboardKey = void 0;
|
6543
6603
|
|
6544
6604
|
/**
|
@@ -6575,17 +6635,21 @@ IconToggleState.prototype.content;
|
|
6575
6635
|
*/
|
6576
6636
|
IconToggleState.prototype.cssClass;
|
6577
6637
|
|
6638
|
+
/* harmony default export */ __webpack_exports__["a"] = (MDCIconToggleFoundation);
|
6639
|
+
|
6578
6640
|
/***/ }),
|
6579
6641
|
/* 49 */
|
6580
6642
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6581
6643
|
|
6582
6644
|
"use strict";
|
6645
|
+
/* unused harmony export MDCIconToggleAdapter */
|
6583
6646
|
/* unused harmony export IconToggleEvent */
|
6584
6647
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
6585
6648
|
|
6586
6649
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
6587
6650
|
|
6588
6651
|
/**
|
6652
|
+
* @license
|
6589
6653
|
* Copyright 2017 Google Inc. All Rights Reserved.
|
6590
6654
|
*
|
6591
6655
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -6621,6 +6685,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
6621
6685
|
*
|
6622
6686
|
* @record
|
6623
6687
|
*/
|
6688
|
+
|
6624
6689
|
var MDCIconToggleAdapter = function () {
|
6625
6690
|
function MDCIconToggleAdapter() {
|
6626
6691
|
_classCallCheck(this, MDCIconToggleAdapter);
|
@@ -6715,9 +6780,10 @@ var MDCIconToggleAdapter = function () {
|
|
6715
6780
|
*/
|
6716
6781
|
|
6717
6782
|
|
6718
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (MDCIconToggleAdapter);
|
6719
6783
|
var IconToggleEvent = void 0;
|
6720
6784
|
|
6785
|
+
|
6786
|
+
|
6721
6787
|
/***/ }),
|
6722
6788
|
/* 50 */
|
6723
6789
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -6726,6 +6792,7 @@ var IconToggleEvent = void 0;
|
|
6726
6792
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
6727
6793
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
6728
6794
|
/**
|
6795
|
+
* @license
|
6729
6796
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
6730
6797
|
*
|
6731
6798
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -6757,6 +6824,8 @@ var strings = {
|
|
6757
6824
|
CHANGE_EVENT: 'MDCIconToggle:change'
|
6758
6825
|
};
|
6759
6826
|
|
6827
|
+
|
6828
|
+
|
6760
6829
|
/***/ }),
|
6761
6830
|
/* 51 */
|
6762
6831
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -7057,7 +7126,7 @@ var strings = {
|
|
7057
7126
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCSimpleMenu; });
|
7058
7127
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
7059
7128
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(55);
|
7060
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(
|
7129
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(10);
|
7061
7130
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
7062
7131
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
7063
7132
|
|
@@ -7068,6 +7137,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
7068
7137
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
7069
7138
|
|
7070
7139
|
/**
|
7140
|
+
* @license
|
7071
7141
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
7072
7142
|
*
|
7073
7143
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -7087,11 +7157,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
7087
7157
|
|
7088
7158
|
|
7089
7159
|
|
7090
|
-
|
7091
|
-
|
7092
7160
|
/**
|
7093
7161
|
* @extends MDCComponent<!MDCSimpleMenuFoundation>
|
7094
7162
|
*/
|
7163
|
+
|
7095
7164
|
var MDCSimpleMenu = function (_MDCComponent) {
|
7096
7165
|
_inherits(MDCSimpleMenu, _MDCComponent);
|
7097
7166
|
|
@@ -7307,6 +7376,8 @@ var MDCSimpleMenu = function (_MDCComponent) {
|
|
7307
7376
|
return MDCSimpleMenu;
|
7308
7377
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
7309
7378
|
|
7379
|
+
|
7380
|
+
|
7310
7381
|
/***/ }),
|
7311
7382
|
/* 55 */
|
7312
7383
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -7315,7 +7386,7 @@ var MDCSimpleMenu = function (_MDCComponent) {
|
|
7315
7386
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(1);
|
7316
7387
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(56);
|
7317
7388
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(57);
|
7318
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
7389
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(10);
|
7319
7390
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
7320
7391
|
|
7321
7392
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -7329,6 +7400,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
7329
7400
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
7330
7401
|
|
7331
7402
|
/**
|
7403
|
+
* @license
|
7332
7404
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
7333
7405
|
*
|
7334
7406
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -7950,6 +8022,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
7950
8022
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
7951
8023
|
|
7952
8024
|
/**
|
8025
|
+
* @license
|
7953
8026
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
7954
8027
|
*
|
7955
8028
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8213,6 +8286,7 @@ var MDCSimpleMenuAdapter = function () {
|
|
8213
8286
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return strings; });
|
8214
8287
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return numbers; });
|
8215
8288
|
/**
|
8289
|
+
* @license
|
8216
8290
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
8217
8291
|
*
|
8218
8292
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8265,6 +8339,8 @@ var numbers = {
|
|
8265
8339
|
TRANSITION_Y2: 1
|
8266
8340
|
};
|
8267
8341
|
|
8342
|
+
|
8343
|
+
|
8268
8344
|
/***/ }),
|
8269
8345
|
/* 58 */
|
8270
8346
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -8290,6 +8366,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
8290
8366
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
8291
8367
|
|
8292
8368
|
/**
|
8369
|
+
* @license
|
8293
8370
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
8294
8371
|
*
|
8295
8372
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8312,12 +8389,11 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
8312
8389
|
|
8313
8390
|
|
8314
8391
|
|
8315
|
-
|
8316
|
-
|
8317
8392
|
/**
|
8318
8393
|
* @extends MDCComponent<!MDCRadioFoundation>
|
8319
8394
|
* @implements {MDCSelectionControl}
|
8320
8395
|
*/
|
8396
|
+
|
8321
8397
|
var MDCRadio = function (_MDCComponent) {
|
8322
8398
|
_inherits(MDCRadio, _MDCComponent);
|
8323
8399
|
|
@@ -8485,6 +8561,8 @@ var MDCRadio = function (_MDCComponent) {
|
|
8485
8561
|
return MDCRadio;
|
8486
8562
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
8487
8563
|
|
8564
|
+
|
8565
|
+
|
8488
8566
|
/***/ }),
|
8489
8567
|
/* 59 */
|
8490
8568
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -8503,6 +8581,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
8503
8581
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
8504
8582
|
|
8505
8583
|
/**
|
8584
|
+
* @license
|
8506
8585
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
8507
8586
|
*
|
8508
8587
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8654,6 +8733,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
8654
8733
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
8655
8734
|
|
8656
8735
|
/**
|
8736
|
+
* @license
|
8657
8737
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
8658
8738
|
*
|
8659
8739
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8727,6 +8807,7 @@ var MDCRadioAdapter = function () {
|
|
8727
8807
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
8728
8808
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
8729
8809
|
/**
|
8810
|
+
* @license
|
8730
8811
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
8731
8812
|
*
|
8732
8813
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -8753,6 +8834,8 @@ var cssClasses = {
|
|
8753
8834
|
DISABLED: 'mdc-radio--disabled'
|
8754
8835
|
};
|
8755
8836
|
|
8837
|
+
|
8838
|
+
|
8756
8839
|
/***/ }),
|
8757
8840
|
/* 62 */
|
8758
8841
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -8761,7 +8844,7 @@ var cssClasses = {
|
|
8761
8844
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
8762
8845
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelect", function() { return MDCSelect; });
|
8763
8846
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
8764
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_menu__ = __webpack_require__(
|
8847
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_menu__ = __webpack_require__(9);
|
8765
8848
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(63);
|
8766
8849
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
8767
8850
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -8990,7 +9073,7 @@ var MDCSelect = function (_MDCComponent) {
|
|
8990
9073
|
"use strict";
|
8991
9074
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
8992
9075
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(64);
|
8993
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_menu__ = __webpack_require__(
|
9076
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_menu__ = __webpack_require__(9);
|
8994
9077
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
8995
9078
|
|
8996
9079
|
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
@@ -11770,6 +11853,12 @@ var MDCTextfield = function (_MDCComponent) {
|
|
11770
11853
|
if (this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].BOX)) {
|
11771
11854
|
this.ripple = rippleFactory(this.root_);
|
11772
11855
|
};
|
11856
|
+
if (!this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].TEXTAREA)) {
|
11857
|
+
this.bottomLine_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].BOTTOM_LINE_SELECTOR);
|
11858
|
+
};
|
11859
|
+
if (!this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].TEXT_FIELD_ICON)) {
|
11860
|
+
this.icon_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ICON_SELECTOR);
|
11861
|
+
};
|
11773
11862
|
}
|
11774
11863
|
}, {
|
11775
11864
|
key: 'destroy',
|
@@ -11807,74 +11896,114 @@ var MDCTextfield = function (_MDCComponent) {
|
|
11807
11896
|
if (label) {
|
11808
11897
|
label.classList.remove(className);
|
11809
11898
|
}
|
11899
|
+
},
|
11900
|
+
eventTargetHasClass: function eventTargetHasClass(target, className) {
|
11901
|
+
return target.classList.contains(className);
|
11902
|
+
},
|
11903
|
+
registerTextFieldInteractionHandler: function registerTextFieldInteractionHandler(evtType, handler) {
|
11904
|
+
return _this2.root_.addEventListener(evtType, handler);
|
11905
|
+
},
|
11906
|
+
deregisterTextFieldInteractionHandler: function deregisterTextFieldInteractionHandler(evtType, handler) {
|
11907
|
+
return _this2.root_.removeEventListener(evtType, handler);
|
11908
|
+
},
|
11909
|
+
notifyIconAction: function notifyIconAction() {
|
11910
|
+
return _this2.emit(__WEBPACK_IMPORTED_MODULE_3__foundation__["a" /* default */].strings.ICON_EVENT);
|
11810
11911
|
}
|
11811
|
-
}, this.getInputAdapterMethods_(), this.getHelptextAdapterMethods_()));
|
11912
|
+
}, this.getInputAdapterMethods_(), this.getHelptextAdapterMethods_(), this.getBottomLineAdapterMethods_(), this.getIconAdapterMethods_()));
|
11812
11913
|
}
|
11813
11914
|
}, {
|
11814
|
-
key: '
|
11815
|
-
value: function
|
11915
|
+
key: 'getIconAdapterMethods_',
|
11916
|
+
value: function getIconAdapterMethods_() {
|
11816
11917
|
var _this3 = this;
|
11817
11918
|
|
11818
11919
|
return {
|
11819
|
-
|
11820
|
-
|
11821
|
-
|
11822
|
-
|
11823
|
-
|
11824
|
-
|
11825
|
-
|
11826
|
-
|
11920
|
+
setIconAttr: function setIconAttr(name, value) {
|
11921
|
+
if (_this3.icon_) {
|
11922
|
+
_this3.icon_.setAttribute(name, value);
|
11923
|
+
}
|
11924
|
+
}
|
11925
|
+
};
|
11926
|
+
}
|
11927
|
+
}, {
|
11928
|
+
key: 'getBottomLineAdapterMethods_',
|
11929
|
+
value: function getBottomLineAdapterMethods_() {
|
11930
|
+
var _this4 = this;
|
11931
|
+
|
11932
|
+
return {
|
11933
|
+
addClassToBottomLine: function addClassToBottomLine(className) {
|
11934
|
+
if (_this4.bottomLine_) {
|
11935
|
+
_this4.bottomLine_.classList.add(className);
|
11936
|
+
}
|
11827
11937
|
},
|
11828
|
-
|
11829
|
-
|
11938
|
+
removeClassFromBottomLine: function removeClassFromBottomLine(className) {
|
11939
|
+
if (_this4.bottomLine_) {
|
11940
|
+
_this4.bottomLine_.classList.remove(className);
|
11941
|
+
}
|
11830
11942
|
},
|
11831
|
-
|
11832
|
-
|
11943
|
+
setBottomLineAttr: function setBottomLineAttr(attr, value) {
|
11944
|
+
if (_this4.bottomLine_) {
|
11945
|
+
_this4.bottomLine_.setAttribute(attr, value);
|
11946
|
+
}
|
11833
11947
|
},
|
11834
|
-
|
11835
|
-
|
11948
|
+
registerTransitionEndHandler: function registerTransitionEndHandler(handler) {
|
11949
|
+
if (_this4.bottomLine_) {
|
11950
|
+
_this4.bottomLine_.addEventListener('transitionend', handler);
|
11951
|
+
}
|
11836
11952
|
},
|
11837
|
-
|
11838
|
-
|
11953
|
+
deregisterTransitionEndHandler: function deregisterTransitionEndHandler(handler) {
|
11954
|
+
if (_this4.bottomLine_) {
|
11955
|
+
_this4.bottomLine_.removeEventListener('transitionend', handler);
|
11956
|
+
}
|
11957
|
+
}
|
11958
|
+
};
|
11959
|
+
}
|
11960
|
+
}, {
|
11961
|
+
key: 'getInputAdapterMethods_',
|
11962
|
+
value: function getInputAdapterMethods_() {
|
11963
|
+
var _this5 = this;
|
11964
|
+
|
11965
|
+
return {
|
11966
|
+
registerInputInteractionHandler: function registerInputInteractionHandler(evtType, handler) {
|
11967
|
+
return _this5.input_.addEventListener(evtType, handler);
|
11839
11968
|
},
|
11840
|
-
|
11841
|
-
return
|
11969
|
+
deregisterInputInteractionHandler: function deregisterInputInteractionHandler(evtType, handler) {
|
11970
|
+
return _this5.input_.removeEventListener(evtType, handler);
|
11842
11971
|
},
|
11843
11972
|
getNativeInput: function getNativeInput() {
|
11844
|
-
return
|
11973
|
+
return _this5.input_;
|
11845
11974
|
}
|
11846
11975
|
};
|
11847
11976
|
}
|
11848
11977
|
}, {
|
11849
11978
|
key: 'getHelptextAdapterMethods_',
|
11850
11979
|
value: function getHelptextAdapterMethods_() {
|
11851
|
-
var
|
11980
|
+
var _this6 = this;
|
11852
11981
|
|
11853
11982
|
return {
|
11854
11983
|
addClassToHelptext: function addClassToHelptext(className) {
|
11855
|
-
if (
|
11856
|
-
|
11984
|
+
if (_this6.helptextElement) {
|
11985
|
+
_this6.helptextElement.classList.add(className);
|
11857
11986
|
}
|
11858
11987
|
},
|
11859
11988
|
removeClassFromHelptext: function removeClassFromHelptext(className) {
|
11860
|
-
if (
|
11861
|
-
|
11989
|
+
if (_this6.helptextElement) {
|
11990
|
+
_this6.helptextElement.classList.remove(className);
|
11862
11991
|
}
|
11863
11992
|
},
|
11864
11993
|
helptextHasClass: function helptextHasClass(className) {
|
11865
|
-
if (!
|
11994
|
+
if (!_this6.helptextElement) {
|
11866
11995
|
return false;
|
11867
11996
|
}
|
11868
|
-
return
|
11997
|
+
return _this6.helptextElement.classList.contains(className);
|
11869
11998
|
},
|
11870
11999
|
setHelptextAttr: function setHelptextAttr(name, value) {
|
11871
|
-
if (
|
11872
|
-
|
12000
|
+
if (_this6.helptextElement) {
|
12001
|
+
_this6.helptextElement.setAttribute(name, value);
|
11873
12002
|
}
|
11874
12003
|
},
|
11875
12004
|
removeHelptextAttr: function removeHelptextAttr(name) {
|
11876
|
-
if (
|
11877
|
-
|
12005
|
+
if (_this6.helptextElement) {
|
12006
|
+
_this6.helptextElement.removeAttribute(name);
|
11878
12007
|
}
|
11879
12008
|
}
|
11880
12009
|
};
|
@@ -11959,26 +12088,27 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
11959
12088
|
removeClass: function removeClass() /* className: string */{},
|
11960
12089
|
addClassToLabel: function addClassToLabel() /* className: string */{},
|
11961
12090
|
removeClassFromLabel: function removeClassFromLabel() /* className: string */{},
|
12091
|
+
setIconAttr: function setIconAttr() /* name: string, value: string */{},
|
12092
|
+
eventTargetHasClass: function eventTargetHasClass() /* target: HTMLElement, className: string */{},
|
12093
|
+
registerTextFieldInteractionHandler: function registerTextFieldInteractionHandler() {},
|
12094
|
+
deregisterTextFieldInteractionHandler: function deregisterTextFieldInteractionHandler() {},
|
12095
|
+
notifyIconAction: function notifyIconAction() {},
|
12096
|
+
addClassToBottomLine: function addClassToBottomLine() /* className: string */{},
|
12097
|
+
removeClassFromBottomLine: function removeClassFromBottomLine() /* className: string */{},
|
11962
12098
|
addClassToHelptext: function addClassToHelptext() /* className: string */{},
|
11963
12099
|
removeClassFromHelptext: function removeClassFromHelptext() /* className: string */{},
|
11964
12100
|
helptextHasClass: function helptextHasClass() {
|
11965
12101
|
return (/* className: string */ /* boolean */false
|
11966
12102
|
);
|
11967
12103
|
},
|
11968
|
-
|
11969
|
-
|
11970
|
-
|
11971
|
-
|
11972
|
-
|
11973
|
-
deregisterInputInputHandler: function deregisterInputInputHandler() /* handler: EventListener */{},
|
11974
|
-
registerInputKeydownHandler: function registerInputKeydownHandler() /* handler: EventListener */{},
|
11975
|
-
deregisterInputKeydownHandler: function deregisterInputKeydownHandler() /* handler: EventListener */{},
|
12104
|
+
registerInputInteractionHandler: function registerInputInteractionHandler() /* evtType: string, handler: EventListener */{},
|
12105
|
+
deregisterInputInteractionHandler: function deregisterInputInteractionHandler() /* evtType: string, handler: EventListener */{},
|
12106
|
+
registerTransitionEndHandler: function registerTransitionEndHandler() /* handler: EventListener */{},
|
12107
|
+
deregisterTransitionEndHandler: function deregisterTransitionEndHandler() /* handler: EventListener */{},
|
12108
|
+
setBottomLineAttr: function setBottomLineAttr() /* attr: string, value: string */{},
|
11976
12109
|
setHelptextAttr: function setHelptextAttr() /* name: string, value: string */{},
|
11977
12110
|
removeHelptextAttr: function removeHelptextAttr() /* name: string */{},
|
11978
|
-
getNativeInput: function getNativeInput() {
|
11979
|
-
return (/* HTMLInputElement */{}
|
11980
|
-
);
|
11981
|
-
}
|
12111
|
+
getNativeInput: function getNativeInput() /* HTMLInputElement */{}
|
11982
12112
|
};
|
11983
12113
|
}
|
11984
12114
|
}]);
|
@@ -11990,7 +12120,9 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
11990
12120
|
|
11991
12121
|
var _this = _possibleConstructorReturn(this, (MDCTextfieldFoundation.__proto__ || Object.getPrototypeOf(MDCTextfieldFoundation)).call(this, _extends(MDCTextfieldFoundation.defaultAdapter, adapter)));
|
11992
12122
|
|
12123
|
+
_this.isFocused_ = false;
|
11993
12124
|
_this.receivedUserInput_ = false;
|
12125
|
+
_this.useCustomValidityChecking_ = false;
|
11994
12126
|
_this.inputFocusHandler_ = function () {
|
11995
12127
|
return _this.activateFocus_();
|
11996
12128
|
};
|
@@ -12000,46 +12132,102 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
12000
12132
|
_this.inputInputHandler_ = function () {
|
12001
12133
|
return _this.autoCompleteFocus_();
|
12002
12134
|
};
|
12003
|
-
_this.
|
12004
|
-
return _this.
|
12135
|
+
_this.setPointerXOffset_ = function (evt) {
|
12136
|
+
return _this.setBottomLineTransformOrigin_(evt);
|
12137
|
+
};
|
12138
|
+
_this.textFieldInteractionHandler_ = function (evt) {
|
12139
|
+
return _this.handleTextFieldInteraction_(evt);
|
12140
|
+
};
|
12141
|
+
_this.transitionEndHandler_ = function (evt) {
|
12142
|
+
return _this.transitionEnd_(evt);
|
12005
12143
|
};
|
12006
|
-
_this.useCustomValidityChecking_ = false;
|
12007
12144
|
return _this;
|
12008
12145
|
}
|
12009
12146
|
|
12010
12147
|
_createClass(MDCTextfieldFoundation, [{
|
12011
12148
|
key: 'init',
|
12012
12149
|
value: function init() {
|
12013
|
-
this
|
12014
|
-
this.adapter_.registerInputFocusHandler(this.inputFocusHandler_);
|
12015
|
-
this.adapter_.registerInputBlurHandler(this.inputBlurHandler_);
|
12016
|
-
this.adapter_.registerInputInputHandler(this.inputInputHandler_);
|
12017
|
-
this.adapter_.registerInputKeydownHandler(this.inputKeydownHandler_);
|
12150
|
+
var _this2 = this;
|
12018
12151
|
|
12152
|
+
this.adapter_.addClass(MDCTextfieldFoundation.cssClasses.UPGRADED);
|
12019
12153
|
// Ensure label does not collide with any pre-filled value.
|
12020
12154
|
if (this.getNativeInput_().value) {
|
12021
12155
|
this.adapter_.addClassToLabel(MDCTextfieldFoundation.cssClasses.LABEL_FLOAT_ABOVE);
|
12022
12156
|
}
|
12157
|
+
|
12158
|
+
this.adapter_.registerInputInteractionHandler('focus', this.inputFocusHandler_);
|
12159
|
+
this.adapter_.registerInputInteractionHandler('blur', this.inputBlurHandler_);
|
12160
|
+
this.adapter_.registerInputInteractionHandler('input', this.inputInputHandler_);
|
12161
|
+
['mousedown', 'touchstart'].forEach(function (evtType) {
|
12162
|
+
_this2.adapter_.registerInputInteractionHandler(evtType, _this2.setPointerXOffset_);
|
12163
|
+
});
|
12164
|
+
['click', 'keydown'].forEach(function (evtType) {
|
12165
|
+
_this2.adapter_.registerTextFieldInteractionHandler(evtType, _this2.textFieldInteractionHandler_);
|
12166
|
+
});
|
12167
|
+
this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_);
|
12023
12168
|
}
|
12024
12169
|
}, {
|
12025
12170
|
key: 'destroy',
|
12026
12171
|
value: function destroy() {
|
12172
|
+
var _this3 = this;
|
12173
|
+
|
12027
12174
|
this.adapter_.removeClass(MDCTextfieldFoundation.cssClasses.UPGRADED);
|
12028
|
-
this.adapter_.
|
12029
|
-
this.adapter_.
|
12030
|
-
this.adapter_.
|
12031
|
-
|
12175
|
+
this.adapter_.deregisterInputInteractionHandler('focus', this.inputFocusHandler_);
|
12176
|
+
this.adapter_.deregisterInputInteractionHandler('blur', this.inputBlurHandler_);
|
12177
|
+
this.adapter_.deregisterInputInteractionHandler('input', this.inputInputHandler_);
|
12178
|
+
['mousedown', 'touchstart'].forEach(function (evtType) {
|
12179
|
+
_this3.adapter_.deregisterInputInteractionHandler(evtType, _this3.setPointerXOffset_);
|
12180
|
+
});
|
12181
|
+
['click', 'keydown'].forEach(function (evtType) {
|
12182
|
+
_this3.adapter_.deregisterTextFieldInteractionHandler(evtType, _this3.textFieldInteractionHandler_);
|
12183
|
+
});
|
12184
|
+
this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_);
|
12185
|
+
}
|
12186
|
+
}, {
|
12187
|
+
key: 'handleTextFieldInteraction_',
|
12188
|
+
value: function handleTextFieldInteraction_(evt) {
|
12189
|
+
if (this.adapter_.getNativeInput().disabled) {
|
12190
|
+
return;
|
12191
|
+
}
|
12192
|
+
|
12193
|
+
this.receivedUserInput_ = true;
|
12194
|
+
|
12195
|
+
var target = evt.target,
|
12196
|
+
type = evt.type;
|
12197
|
+
var TEXT_FIELD_ICON = MDCTextfieldFoundation.cssClasses.TEXT_FIELD_ICON;
|
12198
|
+
|
12199
|
+
var targetIsIcon = this.adapter_.eventTargetHasClass(target, TEXT_FIELD_ICON);
|
12200
|
+
var eventTriggersNotification = type === 'click' || evt.key === 'Enter' || evt.keyCode === 13;
|
12201
|
+
|
12202
|
+
if (targetIsIcon && eventTriggersNotification) {
|
12203
|
+
this.adapter_.notifyIconAction();
|
12204
|
+
}
|
12032
12205
|
}
|
12033
12206
|
}, {
|
12034
12207
|
key: 'activateFocus_',
|
12035
12208
|
value: function activateFocus_() {
|
12036
12209
|
var _MDCTextfieldFoundati = MDCTextfieldFoundation.cssClasses,
|
12210
|
+
BOTTOM_LINE_ACTIVE = _MDCTextfieldFoundati.BOTTOM_LINE_ACTIVE,
|
12037
12211
|
FOCUSED = _MDCTextfieldFoundati.FOCUSED,
|
12038
|
-
LABEL_FLOAT_ABOVE = _MDCTextfieldFoundati.LABEL_FLOAT_ABOVE
|
12212
|
+
LABEL_FLOAT_ABOVE = _MDCTextfieldFoundati.LABEL_FLOAT_ABOVE,
|
12213
|
+
LABEL_SHAKE = _MDCTextfieldFoundati.LABEL_SHAKE;
|
12039
12214
|
|
12040
12215
|
this.adapter_.addClass(FOCUSED);
|
12216
|
+
this.adapter_.addClassToBottomLine(BOTTOM_LINE_ACTIVE);
|
12041
12217
|
this.adapter_.addClassToLabel(LABEL_FLOAT_ABOVE);
|
12218
|
+
this.adapter_.removeClassFromLabel(LABEL_SHAKE);
|
12042
12219
|
this.showHelptext_();
|
12220
|
+
this.isFocused_ = true;
|
12221
|
+
}
|
12222
|
+
}, {
|
12223
|
+
key: 'setBottomLineTransformOrigin_',
|
12224
|
+
value: function setBottomLineTransformOrigin_(evt) {
|
12225
|
+
var targetClientRect = evt.target.getBoundingClientRect();
|
12226
|
+
var evtCoords = { x: evt.clientX, y: evt.clientY };
|
12227
|
+
var normalizedX = evtCoords.x - targetClientRect.left;
|
12228
|
+
var attributeString = 'transform-origin: ' + normalizedX + 'px center';
|
12229
|
+
|
12230
|
+
this.adapter_.setBottomLineAttr('style', attributeString);
|
12043
12231
|
}
|
12044
12232
|
}, {
|
12045
12233
|
key: 'autoCompleteFocus_',
|
@@ -12055,20 +12243,38 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
12055
12243
|
|
12056
12244
|
this.adapter_.removeHelptextAttr(ARIA_HIDDEN);
|
12057
12245
|
}
|
12246
|
+
}, {
|
12247
|
+
key: 'transitionEnd_',
|
12248
|
+
value: function transitionEnd_(evt) {
|
12249
|
+
var BOTTOM_LINE_ACTIVE = MDCTextfieldFoundation.cssClasses.BOTTOM_LINE_ACTIVE;
|
12250
|
+
|
12251
|
+
// We need to wait for the bottom line to be entirely transparent
|
12252
|
+
// before removing the class. If we do not, we see the line start to
|
12253
|
+
// scale down before disappearing
|
12254
|
+
|
12255
|
+
if (evt.propertyName === 'opacity' && !this.isFocused_) {
|
12256
|
+
this.adapter_.removeClassFromBottomLine(BOTTOM_LINE_ACTIVE);
|
12257
|
+
}
|
12258
|
+
}
|
12058
12259
|
}, {
|
12059
12260
|
key: 'deactivateFocus_',
|
12060
12261
|
value: function deactivateFocus_() {
|
12061
12262
|
var _MDCTextfieldFoundati2 = MDCTextfieldFoundation.cssClasses,
|
12062
12263
|
FOCUSED = _MDCTextfieldFoundati2.FOCUSED,
|
12063
|
-
LABEL_FLOAT_ABOVE = _MDCTextfieldFoundati2.LABEL_FLOAT_ABOVE
|
12264
|
+
LABEL_FLOAT_ABOVE = _MDCTextfieldFoundati2.LABEL_FLOAT_ABOVE,
|
12265
|
+
LABEL_SHAKE = _MDCTextfieldFoundati2.LABEL_SHAKE;
|
12064
12266
|
|
12065
12267
|
var input = this.getNativeInput_();
|
12066
12268
|
|
12269
|
+
this.isFocused_ = false;
|
12067
12270
|
this.adapter_.removeClass(FOCUSED);
|
12271
|
+
this.adapter_.removeClassFromLabel(LABEL_SHAKE);
|
12272
|
+
|
12068
12273
|
if (!input.value && !this.isBadInput_()) {
|
12069
12274
|
this.adapter_.removeClassFromLabel(LABEL_FLOAT_ABOVE);
|
12070
12275
|
this.receivedUserInput_ = false;
|
12071
12276
|
}
|
12277
|
+
|
12072
12278
|
if (!this.useCustomValidityChecking_) {
|
12073
12279
|
this.changeValidity_(input.checkValidity());
|
12074
12280
|
}
|
@@ -12076,11 +12282,14 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
12076
12282
|
}, {
|
12077
12283
|
key: 'changeValidity_',
|
12078
12284
|
value: function changeValidity_(isValid) {
|
12079
|
-
var
|
12285
|
+
var _MDCTextfieldFoundati3 = MDCTextfieldFoundation.cssClasses,
|
12286
|
+
INVALID = _MDCTextfieldFoundati3.INVALID,
|
12287
|
+
LABEL_SHAKE = _MDCTextfieldFoundati3.LABEL_SHAKE;
|
12080
12288
|
|
12081
12289
|
if (isValid) {
|
12082
12290
|
this.adapter_.removeClass(INVALID);
|
12083
12291
|
} else {
|
12292
|
+
this.adapter_.addClassToLabel(LABEL_SHAKE);
|
12084
12293
|
this.adapter_.addClass(INVALID);
|
12085
12294
|
}
|
12086
12295
|
this.updateHelptext_(isValid);
|
@@ -12088,9 +12297,9 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
12088
12297
|
}, {
|
12089
12298
|
key: 'updateHelptext_',
|
12090
12299
|
value: function updateHelptext_(isValid) {
|
12091
|
-
var
|
12092
|
-
HELPTEXT_PERSISTENT =
|
12093
|
-
HELPTEXT_VALIDATION_MSG =
|
12300
|
+
var _MDCTextfieldFoundati4 = MDCTextfieldFoundation.cssClasses,
|
12301
|
+
HELPTEXT_PERSISTENT = _MDCTextfieldFoundati4.HELPTEXT_PERSISTENT,
|
12302
|
+
HELPTEXT_VALIDATION_MSG = _MDCTextfieldFoundati4.HELPTEXT_VALIDATION_MSG;
|
12094
12303
|
var ROLE = MDCTextfieldFoundation.strings.ROLE;
|
12095
12304
|
|
12096
12305
|
var helptextIsPersistent = this.adapter_.helptextHasClass(HELPTEXT_PERSISTENT);
|
@@ -12134,8 +12343,10 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
12134
12343
|
this.getNativeInput_().disabled = disabled;
|
12135
12344
|
if (disabled) {
|
12136
12345
|
this.adapter_.addClass(DISABLED);
|
12346
|
+
this.adapter_.setIconAttr('tabindex', '-1');
|
12137
12347
|
} else {
|
12138
12348
|
this.adapter_.removeClass(DISABLED);
|
12349
|
+
this.adapter_.setIconAttr('tabindex', '0');
|
12139
12350
|
}
|
12140
12351
|
}
|
12141
12352
|
}, {
|