material_components_web-sass 0.26.0 → 0.27.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/CHANGELOG.md +9 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +698 -637
- data/vendor/assets/stylesheets/@material/button/_mixins.scss +2 -2
- data/vendor/assets/stylesheets/@material/button/_variables.scss +0 -3
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +2 -2
- data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +1 -1
- data/vendor/assets/stylesheets/@material/fab/_mixins.scss +2 -2
- data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +1 -5
- data/vendor/assets/stylesheets/@material/icon-toggle/mdc-icon-toggle.scss +4 -19
- data/vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss +4 -0
- data/vendor/assets/stylesheets/@material/list/_mixins.scss +83 -0
- data/vendor/assets/stylesheets/@material/list/_variables.scss +18 -0
- data/vendor/assets/stylesheets/@material/list/mdc-list.scss +50 -43
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +33 -35
- data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +1 -1
- data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +3 -2
- data/vendor/assets/stylesheets/@material/ripple/_mixins.scss +172 -34
- data/vendor/assets/stylesheets/@material/ripple/_variables.scss +23 -0
- data/vendor/assets/stylesheets/@material/ripple/mdc-ripple.scss +3 -3
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +146 -35
- data/vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss +3 -3
- data/vendor/assets/stylesheets/@material/textfield/mdc-text-field.scss +2 -2
- data/vendor/assets/stylesheets/@material/theme/_mixins.scss +1 -1
- data/vendor/assets/stylesheets/@material/theme/_variables.scss +13 -1
- data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +1 -1
- 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: d6e60e301e4dadfc802f4a61386dab360a8786d1
|
4
|
+
data.tar.gz: bf9af40bd814ce5db422849839071d3ae8c095bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e121ca20537d0753bb29ba958ca1fee1c0bacf097467020c11409dd51f20e4ca53c1c44c79940d2011b38b58d340c197d207ba0f2fafc4ecf114362366c1175
|
7
|
+
data.tar.gz: 5609c83643b15a1c8da0d23c32634c66a79c4374e2c614d4bce5377591a41d033b3d9d4b49228891a96befe5c95c0d50ef3e4a55ac970d4f2a26bbfb913d0d1e
|
data/CHANGELOG.md
CHANGED
@@ -75,7 +75,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
75
75
|
/******/ __webpack_require__.p = "/assets/";
|
76
76
|
/******/
|
77
77
|
/******/ // Load entry module and return exports
|
78
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
78
|
+
/******/ return __webpack_require__(__webpack_require__.s = 23);
|
79
79
|
/******/ })
|
80
80
|
/************************************************************************/
|
81
81
|
/******/ ([
|
@@ -389,78 +389,13 @@ var MDCComponent = function () {
|
|
389
389
|
/* 3 */
|
390
390
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
391
391
|
|
392
|
-
"use strict";
|
393
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
394
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectionControlState", function() { return MDCSelectionControlState; });
|
395
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectionControl", function() { return MDCSelectionControl; });
|
396
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ripple__ = __webpack_require__(4);
|
397
|
-
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; }; }();
|
398
|
-
|
399
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
400
|
-
|
401
|
-
/**
|
402
|
-
* @license
|
403
|
-
* Copyright 2017 Google Inc. All Rights Reserved.
|
404
|
-
*
|
405
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
406
|
-
* you may not use this file except in compliance with the License.
|
407
|
-
* You may obtain a copy of the License at
|
408
|
-
*
|
409
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
410
|
-
*
|
411
|
-
* Unless required by applicable law or agreed to in writing, software
|
412
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
413
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
414
|
-
* See the License for the specific language governing permissions and
|
415
|
-
* limitations under the License.
|
416
|
-
*/
|
417
|
-
|
418
|
-
/* eslint-disable no-unused-vars */
|
419
|
-
|
420
|
-
/* eslint-enable no-unused-vars */
|
421
|
-
|
422
|
-
/**
|
423
|
-
* @typedef {!{
|
424
|
-
* checked: boolean,
|
425
|
-
* indeterminate: boolean,
|
426
|
-
* disabled: boolean,
|
427
|
-
* value: ?string
|
428
|
-
* }}
|
429
|
-
*/
|
430
|
-
var MDCSelectionControlState = void 0;
|
431
|
-
|
432
|
-
/**
|
433
|
-
* @record
|
434
|
-
*/
|
435
|
-
|
436
|
-
var MDCSelectionControl = function () {
|
437
|
-
function MDCSelectionControl() {
|
438
|
-
_classCallCheck(this, MDCSelectionControl);
|
439
|
-
}
|
440
|
-
|
441
|
-
_createClass(MDCSelectionControl, [{
|
442
|
-
key: 'ripple',
|
443
|
-
|
444
|
-
/** @return {?MDCRipple} */
|
445
|
-
get: function get() {}
|
446
|
-
}]);
|
447
|
-
|
448
|
-
return MDCSelectionControl;
|
449
|
-
}();
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
/***/ }),
|
454
|
-
/* 4 */
|
455
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
456
|
-
|
457
392
|
"use strict";
|
458
393
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
459
394
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRipple", function() { return MDCRipple; });
|
460
395
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
461
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
462
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
463
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
396
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(13);
|
397
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(26);
|
398
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(6);
|
464
399
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRippleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
465
400
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_3__util__; });
|
466
401
|
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; }; }();
|
@@ -678,6 +613,71 @@ RippleCapableSurface.prototype.disabled;
|
|
678
613
|
|
679
614
|
|
680
615
|
|
616
|
+
/***/ }),
|
617
|
+
/* 4 */
|
618
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
619
|
+
|
620
|
+
"use strict";
|
621
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
622
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectionControlState", function() { return MDCSelectionControlState; });
|
623
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectionControl", function() { return MDCSelectionControl; });
|
624
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ripple__ = __webpack_require__(3);
|
625
|
+
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; }; }();
|
626
|
+
|
627
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
628
|
+
|
629
|
+
/**
|
630
|
+
* @license
|
631
|
+
* Copyright 2017 Google Inc. All Rights Reserved.
|
632
|
+
*
|
633
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
634
|
+
* you may not use this file except in compliance with the License.
|
635
|
+
* You may obtain a copy of the License at
|
636
|
+
*
|
637
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
638
|
+
*
|
639
|
+
* Unless required by applicable law or agreed to in writing, software
|
640
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
641
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
642
|
+
* See the License for the specific language governing permissions and
|
643
|
+
* limitations under the License.
|
644
|
+
*/
|
645
|
+
|
646
|
+
/* eslint-disable no-unused-vars */
|
647
|
+
|
648
|
+
/* eslint-enable no-unused-vars */
|
649
|
+
|
650
|
+
/**
|
651
|
+
* @typedef {!{
|
652
|
+
* checked: boolean,
|
653
|
+
* indeterminate: boolean,
|
654
|
+
* disabled: boolean,
|
655
|
+
* value: ?string
|
656
|
+
* }}
|
657
|
+
*/
|
658
|
+
var MDCSelectionControlState = void 0;
|
659
|
+
|
660
|
+
/**
|
661
|
+
* @record
|
662
|
+
*/
|
663
|
+
|
664
|
+
var MDCSelectionControl = function () {
|
665
|
+
function MDCSelectionControl() {
|
666
|
+
_classCallCheck(this, MDCSelectionControl);
|
667
|
+
}
|
668
|
+
|
669
|
+
_createClass(MDCSelectionControl, [{
|
670
|
+
key: 'ripple',
|
671
|
+
|
672
|
+
/** @return {?MDCRipple} */
|
673
|
+
get: function get() {}
|
674
|
+
}]);
|
675
|
+
|
676
|
+
return MDCSelectionControl;
|
677
|
+
}();
|
678
|
+
|
679
|
+
|
680
|
+
|
681
681
|
/***/ }),
|
682
682
|
/* 5 */
|
683
683
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -832,34 +832,6 @@ function getCorrectPropertyName(windowObj, eventType) {
|
|
832
832
|
/* 6 */
|
833
833
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
834
834
|
|
835
|
-
"use strict";
|
836
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__(39);
|
837
|
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__constants__["a"]; });
|
838
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(40);
|
839
|
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
840
|
-
/**
|
841
|
-
* Copyright 2016 Google Inc. All Rights Reserved.
|
842
|
-
*
|
843
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
844
|
-
* you may not use this file except in compliance with the License.
|
845
|
-
* You may obtain a copy of the License at
|
846
|
-
*
|
847
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
848
|
-
*
|
849
|
-
* Unless required by applicable law or agreed to in writing, software
|
850
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
851
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
852
|
-
* See the License for the specific language governing permissions and
|
853
|
-
* limitations under the License.
|
854
|
-
*/
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
/***/ }),
|
860
|
-
/* 7 */
|
861
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
862
|
-
|
863
835
|
"use strict";
|
864
836
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
865
837
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsCssVariables", function() { return supportsCssVariables; });
|
@@ -1012,6 +984,34 @@ function getNormalizedEventCoords(ev, pageOffset, clientRect) {
|
|
1012
984
|
|
1013
985
|
|
1014
986
|
|
987
|
+
/***/ }),
|
988
|
+
/* 7 */
|
989
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
990
|
+
|
991
|
+
"use strict";
|
992
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__(40);
|
993
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__constants__["a"]; });
|
994
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(41);
|
995
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
996
|
+
/**
|
997
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
998
|
+
*
|
999
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1000
|
+
* you may not use this file except in compliance with the License.
|
1001
|
+
* You may obtain a copy of the License at
|
1002
|
+
*
|
1003
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1004
|
+
*
|
1005
|
+
* Unless required by applicable law or agreed to in writing, software
|
1006
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1007
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1008
|
+
* See the License for the specific language governing permissions and
|
1009
|
+
* limitations under the License.
|
1010
|
+
*/
|
1011
|
+
|
1012
|
+
|
1013
|
+
|
1014
|
+
|
1015
1015
|
/***/ }),
|
1016
1016
|
/* 8 */
|
1017
1017
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1138,7 +1138,7 @@ function restoreElementTabState(el) {
|
|
1138
1138
|
"use strict";
|
1139
1139
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1140
1140
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(10);
|
1141
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__simple__ = __webpack_require__(
|
1141
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__simple__ = __webpack_require__(60);
|
1142
1142
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenu", function() { return __WEBPACK_IMPORTED_MODULE_1__simple__["a"]; });
|
1143
1143
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenuFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__simple__["b"]; });
|
1144
1144
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_0__util__; });
|
@@ -1338,7 +1338,7 @@ function solvePositionFromXValue_(xVal, x1, x2) {
|
|
1338
1338
|
|
1339
1339
|
"use strict";
|
1340
1340
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
1341
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
1341
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(21);
|
1342
1342
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(83);
|
1343
1343
|
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; };
|
1344
1344
|
|
@@ -1507,6 +1507,163 @@ var MDCTextFieldBottomLineFoundation = function (_MDCFoundation) {
|
|
1507
1507
|
/* 12 */
|
1508
1508
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1509
1509
|
|
1510
|
+
"use strict";
|
1511
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
1512
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(22);
|
1513
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(84);
|
1514
|
+
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; };
|
1515
|
+
|
1516
|
+
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; }; }();
|
1517
|
+
|
1518
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1519
|
+
|
1520
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
1521
|
+
|
1522
|
+
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; }
|
1523
|
+
|
1524
|
+
/**
|
1525
|
+
* @license
|
1526
|
+
* Copyright 2017 Google Inc. All Rights Reserved.
|
1527
|
+
*
|
1528
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1529
|
+
* you may not use this file except in compliance with the License.
|
1530
|
+
* You may obtain a copy of the License at
|
1531
|
+
*
|
1532
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1533
|
+
*
|
1534
|
+
* Unless required by applicable law or agreed to in writing, software
|
1535
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1536
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1537
|
+
* See the License for the specific language governing permissions and
|
1538
|
+
* limitations under the License.
|
1539
|
+
*/
|
1540
|
+
|
1541
|
+
|
1542
|
+
|
1543
|
+
|
1544
|
+
|
1545
|
+
/**
|
1546
|
+
* @extends {MDCFoundation<!MDCTextFieldHelperTextAdapter>}
|
1547
|
+
* @final
|
1548
|
+
*/
|
1549
|
+
|
1550
|
+
var MDCTextFieldHelperTextFoundation = function (_MDCFoundation) {
|
1551
|
+
_inherits(MDCTextFieldHelperTextFoundation, _MDCFoundation);
|
1552
|
+
|
1553
|
+
_createClass(MDCTextFieldHelperTextFoundation, null, [{
|
1554
|
+
key: 'cssClasses',
|
1555
|
+
|
1556
|
+
/** @return enum {string} */
|
1557
|
+
get: function get() {
|
1558
|
+
return __WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */];
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
/** @return enum {string} */
|
1562
|
+
|
1563
|
+
}, {
|
1564
|
+
key: 'strings',
|
1565
|
+
get: function get() {
|
1566
|
+
return __WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */];
|
1567
|
+
}
|
1568
|
+
|
1569
|
+
/**
|
1570
|
+
* {@see MDCTextFieldHelperTextAdapter} for typing information on parameters and return
|
1571
|
+
* types.
|
1572
|
+
* @return {!MDCTextFieldHelperTextAdapter}
|
1573
|
+
*/
|
1574
|
+
|
1575
|
+
}, {
|
1576
|
+
key: 'defaultAdapter',
|
1577
|
+
get: function get() {
|
1578
|
+
return (/** @type {!MDCTextFieldHelperTextAdapter} */{
|
1579
|
+
addClass: function addClass() {},
|
1580
|
+
removeClass: function removeClass() {},
|
1581
|
+
hasClass: function hasClass() {},
|
1582
|
+
setAttr: function setAttr() {},
|
1583
|
+
removeAttr: function removeAttr() {},
|
1584
|
+
setContent: function setContent() {}
|
1585
|
+
}
|
1586
|
+
);
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
/**
|
1590
|
+
* @param {!MDCTextFieldHelperTextAdapter=} adapter
|
1591
|
+
*/
|
1592
|
+
|
1593
|
+
}]);
|
1594
|
+
|
1595
|
+
function MDCTextFieldHelperTextFoundation() {
|
1596
|
+
var adapter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /** @type {!MDCTextFieldHelperTextAdapter} */{};
|
1597
|
+
|
1598
|
+
_classCallCheck(this, MDCTextFieldHelperTextFoundation);
|
1599
|
+
|
1600
|
+
return _possibleConstructorReturn(this, (MDCTextFieldHelperTextFoundation.__proto__ || Object.getPrototypeOf(MDCTextFieldHelperTextFoundation)).call(this, _extends(MDCTextFieldHelperTextFoundation.defaultAdapter, adapter)));
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
/**
|
1604
|
+
* Sets the content of the helper text field.
|
1605
|
+
* @param {string} content
|
1606
|
+
*/
|
1607
|
+
|
1608
|
+
|
1609
|
+
_createClass(MDCTextFieldHelperTextFoundation, [{
|
1610
|
+
key: 'setContent',
|
1611
|
+
value: function setContent(content) {
|
1612
|
+
this.adapter_.setContent(content);
|
1613
|
+
}
|
1614
|
+
|
1615
|
+
/** Makes the helper text visible to the screen reader. */
|
1616
|
+
|
1617
|
+
}, {
|
1618
|
+
key: 'showToScreenReader',
|
1619
|
+
value: function showToScreenReader() {
|
1620
|
+
this.adapter_.removeAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ARIA_HIDDEN);
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
/**
|
1624
|
+
* Sets the validity of the helper text based on the input validity.
|
1625
|
+
* @param {boolean} inputIsValid
|
1626
|
+
*/
|
1627
|
+
|
1628
|
+
}, {
|
1629
|
+
key: 'setValidity',
|
1630
|
+
value: function setValidity(inputIsValid) {
|
1631
|
+
var helperTextIsPersistent = this.adapter_.hasClass(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].HELPER_TEXT_PERSISTENT);
|
1632
|
+
var helperTextIsValidationMsg = this.adapter_.hasClass(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].HELPER_TEXT_VALIDATION_MSG);
|
1633
|
+
var validationMsgNeedsDisplay = helperTextIsValidationMsg && !inputIsValid;
|
1634
|
+
|
1635
|
+
if (validationMsgNeedsDisplay) {
|
1636
|
+
this.adapter_.setAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ROLE, 'alert');
|
1637
|
+
} else {
|
1638
|
+
this.adapter_.removeAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ROLE);
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
if (!helperTextIsPersistent && !validationMsgNeedsDisplay) {
|
1642
|
+
this.hide_();
|
1643
|
+
}
|
1644
|
+
}
|
1645
|
+
|
1646
|
+
/**
|
1647
|
+
* Hides the help text from screen readers.
|
1648
|
+
* @private
|
1649
|
+
*/
|
1650
|
+
|
1651
|
+
}, {
|
1652
|
+
key: 'hide_',
|
1653
|
+
value: function hide_() {
|
1654
|
+
this.adapter_.setAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ARIA_HIDDEN, 'true');
|
1655
|
+
}
|
1656
|
+
}]);
|
1657
|
+
|
1658
|
+
return MDCTextFieldHelperTextFoundation;
|
1659
|
+
}(__WEBPACK_IMPORTED_MODULE_0__material_base_foundation__["a" /* default */]);
|
1660
|
+
|
1661
|
+
/* harmony default export */ __webpack_exports__["a"] = (MDCTextFieldHelperTextFoundation);
|
1662
|
+
|
1663
|
+
/***/ }),
|
1664
|
+
/* 13 */
|
1665
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1666
|
+
|
1510
1667
|
"use strict";
|
1511
1668
|
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; }; }();
|
1512
1669
|
|
@@ -1652,10 +1809,52 @@ var MDCRippleAdapter = function () {
|
|
1652
1809
|
return MDCRippleAdapter;
|
1653
1810
|
}();
|
1654
1811
|
|
1655
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (MDCRippleAdapter);
|
1812
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (MDCRippleAdapter);
|
1813
|
+
|
1814
|
+
/***/ }),
|
1815
|
+
/* 14 */
|
1816
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1817
|
+
|
1818
|
+
"use strict";
|
1819
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
1820
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
1821
|
+
/**
|
1822
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
1823
|
+
*
|
1824
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1825
|
+
* you may not use this file except in compliance with the License.
|
1826
|
+
* You may obtain a copy of the License at
|
1827
|
+
*
|
1828
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1829
|
+
*
|
1830
|
+
* Unless required by applicable law or agreed to in writing, software
|
1831
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1832
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1833
|
+
* See the License for the specific language governing permissions and
|
1834
|
+
* limitations under the License.
|
1835
|
+
*/
|
1836
|
+
var cssClasses = {
|
1837
|
+
BOTTOM_LINE: 'mdc-select__bottom-line',
|
1838
|
+
BOTTOM_LINE_ACTIVE: 'mdc-select__bottom-line--active',
|
1839
|
+
BOX: 'mdc-select--box',
|
1840
|
+
DISABLED: 'mdc-select--disabled',
|
1841
|
+
LABEL_FLOAT_ABOVE: 'mdc-select__label--float-above',
|
1842
|
+
OPEN: 'mdc-select--open',
|
1843
|
+
ROOT: 'mdc-select',
|
1844
|
+
SCROLL_LOCK: 'mdc-select-scroll-lock'
|
1845
|
+
};
|
1846
|
+
|
1847
|
+
var strings = {
|
1848
|
+
CHANGE_EVENT: 'MDCSelect:change',
|
1849
|
+
BOTTOM_LINE_SELECTOR: '.mdc-select__bottom-line',
|
1850
|
+
LABEL_SELECTOR: '.mdc-select__label',
|
1851
|
+
MENU_SELECTOR: '.mdc-select__menu',
|
1852
|
+
SURFACE_SELECTOR: '.mdc-select__surface',
|
1853
|
+
SELECTED_TEXT_SELECTOR: '.mdc-select__selected-text'
|
1854
|
+
};
|
1656
1855
|
|
1657
1856
|
/***/ }),
|
1658
|
-
/*
|
1857
|
+
/* 15 */
|
1659
1858
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1660
1859
|
|
1661
1860
|
"use strict";
|
@@ -1708,14 +1907,14 @@ var numbers = {
|
|
1708
1907
|
};
|
1709
1908
|
|
1710
1909
|
/***/ }),
|
1711
|
-
/*
|
1910
|
+
/* 16 */
|
1712
1911
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1713
1912
|
|
1714
1913
|
"use strict";
|
1715
1914
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTab; });
|
1716
1915
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
1717
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(
|
1718
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
1916
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(3);
|
1917
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(17);
|
1719
1918
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(76);
|
1720
1919
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__foundation__["a"]; });
|
1721
1920
|
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
|
@@ -1854,7 +2053,7 @@ var MDCTab = function (_MDCComponent) {
|
|
1854
2053
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
1855
2054
|
|
1856
2055
|
/***/ }),
|
1857
|
-
/*
|
2056
|
+
/* 17 */
|
1858
2057
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1859
2058
|
|
1860
2059
|
"use strict";
|
@@ -1885,13 +2084,13 @@ var strings = {
|
|
1885
2084
|
};
|
1886
2085
|
|
1887
2086
|
/***/ }),
|
1888
|
-
/*
|
2087
|
+
/* 18 */
|
1889
2088
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1890
2089
|
|
1891
2090
|
"use strict";
|
1892
2091
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTabBar; });
|
1893
2092
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
1894
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__tab__ = __webpack_require__(
|
2093
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__tab__ = __webpack_require__(16);
|
1895
2094
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(77);
|
1896
2095
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
1897
2096
|
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; }; }();
|
@@ -2074,7 +2273,7 @@ var MDCTabBar = function (_MDCComponent) {
|
|
2074
2273
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base_component__["a" /* default */]);
|
2075
2274
|
|
2076
2275
|
/***/ }),
|
2077
|
-
/*
|
2276
|
+
/* 19 */
|
2078
2277
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2079
2278
|
|
2080
2279
|
"use strict";
|
@@ -2124,14 +2323,15 @@ var cssClasses = {
|
|
2124
2323
|
|
2125
2324
|
|
2126
2325
|
/***/ }),
|
2127
|
-
/*
|
2326
|
+
/* 20 */
|
2128
2327
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2129
2328
|
|
2130
2329
|
"use strict";
|
2131
2330
|
/* unused harmony export MDCTextFieldAdapter */
|
2132
2331
|
/* unused harmony export NativeInputType */
|
2332
|
+
/* unused harmony export FoundationMapType */
|
2133
2333
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__bottom_line_foundation__ = __webpack_require__(11);
|
2134
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helper_text_foundation__ = __webpack_require__(
|
2334
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helper_text_foundation__ = __webpack_require__(12);
|
2135
2335
|
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; }; }();
|
2136
2336
|
|
2137
2337
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -2169,6 +2369,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
2169
2369
|
*/
|
2170
2370
|
var NativeInputType = void 0;
|
2171
2371
|
|
2372
|
+
/**
|
2373
|
+
* @typedef {{
|
2374
|
+
* bottomLine: (!MDCTextFieldBottomLineFoundation|undefined),
|
2375
|
+
* helperText: (!MDCTextFieldHelperTextFoundation|undefined)
|
2376
|
+
* }}
|
2377
|
+
*/
|
2378
|
+
var FoundationMapType = void 0;
|
2379
|
+
|
2172
2380
|
/**
|
2173
2381
|
* Adapter for MDC Text Field.
|
2174
2382
|
*
|
@@ -2273,36 +2481,6 @@ var MDCTextFieldAdapter = function () {
|
|
2273
2481
|
key: 'notifyIconAction',
|
2274
2482
|
value: function notifyIconAction() {}
|
2275
2483
|
|
2276
|
-
/**
|
2277
|
-
* Adds a class to the helper text element. Note that in our code we check for
|
2278
|
-
* whether or not we have a helper text element and if we don't, we simply
|
2279
|
-
* return.
|
2280
|
-
* @param {string} className
|
2281
|
-
*/
|
2282
|
-
|
2283
|
-
}, {
|
2284
|
-
key: 'addClassToHelperText',
|
2285
|
-
value: function addClassToHelperText(className) {}
|
2286
|
-
|
2287
|
-
/**
|
2288
|
-
* Removes a class from the helper text element.
|
2289
|
-
* @param {string} className
|
2290
|
-
*/
|
2291
|
-
|
2292
|
-
}, {
|
2293
|
-
key: 'removeClassFromHelperText',
|
2294
|
-
value: function removeClassFromHelperText(className) {}
|
2295
|
-
|
2296
|
-
/**
|
2297
|
-
* Returns whether or not the helper text element contains the given class.
|
2298
|
-
* @param {string} className
|
2299
|
-
* @return {boolean}
|
2300
|
-
*/
|
2301
|
-
|
2302
|
-
}, {
|
2303
|
-
key: 'helperTextHasClass',
|
2304
|
-
value: function helperTextHasClass(className) {}
|
2305
|
-
|
2306
2484
|
/**
|
2307
2485
|
* Registers an event listener on the native input element for a given event.
|
2308
2486
|
* @param {string} evtType
|
@@ -2343,34 +2521,6 @@ var MDCTextFieldAdapter = function () {
|
|
2343
2521
|
key: 'deregisterBottomLineEventHandler',
|
2344
2522
|
value: function deregisterBottomLineEventHandler(evtType, handler) {}
|
2345
2523
|
|
2346
|
-
/**
|
2347
|
-
* Sets an attribute with a given value on the helper text element.
|
2348
|
-
* @param {string} name
|
2349
|
-
* @param {string} value
|
2350
|
-
*/
|
2351
|
-
|
2352
|
-
}, {
|
2353
|
-
key: 'setHelperTextAttr',
|
2354
|
-
value: function setHelperTextAttr(name, value) {}
|
2355
|
-
|
2356
|
-
/**
|
2357
|
-
* Removes an attribute from the helper text element.
|
2358
|
-
* @param {string} name
|
2359
|
-
*/
|
2360
|
-
|
2361
|
-
}, {
|
2362
|
-
key: 'removeHelperTextAttr',
|
2363
|
-
value: function removeHelperTextAttr(name) {}
|
2364
|
-
|
2365
|
-
/**
|
2366
|
-
* Sets the text content for the help text element
|
2367
|
-
* @param {string} content
|
2368
|
-
*/
|
2369
|
-
|
2370
|
-
}, {
|
2371
|
-
key: 'setHelperTextContent',
|
2372
|
-
value: function setHelperTextContent(content) {}
|
2373
|
-
|
2374
2524
|
/**
|
2375
2525
|
* Returns an object representing the native text input element, with a
|
2376
2526
|
* similar API shape. The object returned should include the value, disabled
|
@@ -2385,26 +2535,6 @@ var MDCTextFieldAdapter = function () {
|
|
2385
2535
|
}, {
|
2386
2536
|
key: 'getNativeInput',
|
2387
2537
|
value: function getNativeInput() {}
|
2388
|
-
|
2389
|
-
/**
|
2390
|
-
* Returns the foundation for the bottom line element. Returns undefined if
|
2391
|
-
* there is no bottom line element.
|
2392
|
-
* @return {?MDCTextFieldBottomLineFoundation}
|
2393
|
-
*/
|
2394
|
-
|
2395
|
-
}, {
|
2396
|
-
key: 'getBottomLineFoundation',
|
2397
|
-
value: function getBottomLineFoundation() {}
|
2398
|
-
|
2399
|
-
/**
|
2400
|
-
* Returns the foundation for the helper text element. Returns undefined if
|
2401
|
-
* there is no helper text element.
|
2402
|
-
* @return {?MDCTextFieldHelperTextFoundation}
|
2403
|
-
*/
|
2404
|
-
|
2405
|
-
}, {
|
2406
|
-
key: 'getHelperTextFoundation',
|
2407
|
-
value: function getHelperTextFoundation() {}
|
2408
2538
|
}]);
|
2409
2539
|
|
2410
2540
|
return MDCTextFieldAdapter;
|
@@ -2413,7 +2543,7 @@ var MDCTextFieldAdapter = function () {
|
|
2413
2543
|
|
2414
2544
|
|
2415
2545
|
/***/ }),
|
2416
|
-
/*
|
2546
|
+
/* 21 */
|
2417
2547
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2418
2548
|
|
2419
2549
|
"use strict";
|
@@ -2520,164 +2650,7 @@ var MDCTextFieldBottomLineAdapter = function () {
|
|
2520
2650
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCTextFieldBottomLineAdapter);
|
2521
2651
|
|
2522
2652
|
/***/ }),
|
2523
|
-
/*
|
2524
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2525
|
-
|
2526
|
-
"use strict";
|
2527
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
2528
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(21);
|
2529
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(84);
|
2530
|
-
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; };
|
2531
|
-
|
2532
|
-
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; }; }();
|
2533
|
-
|
2534
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2535
|
-
|
2536
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
2537
|
-
|
2538
|
-
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; }
|
2539
|
-
|
2540
|
-
/**
|
2541
|
-
* @license
|
2542
|
-
* Copyright 2017 Google Inc. All Rights Reserved.
|
2543
|
-
*
|
2544
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
2545
|
-
* you may not use this file except in compliance with the License.
|
2546
|
-
* You may obtain a copy of the License at
|
2547
|
-
*
|
2548
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
2549
|
-
*
|
2550
|
-
* Unless required by applicable law or agreed to in writing, software
|
2551
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
2552
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
2553
|
-
* See the License for the specific language governing permissions and
|
2554
|
-
* limitations under the License.
|
2555
|
-
*/
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
/**
|
2562
|
-
* @extends {MDCFoundation<!MDCTextFieldHelperTextAdapter>}
|
2563
|
-
* @final
|
2564
|
-
*/
|
2565
|
-
|
2566
|
-
var MDCTextFieldHelperTextFoundation = function (_MDCFoundation) {
|
2567
|
-
_inherits(MDCTextFieldHelperTextFoundation, _MDCFoundation);
|
2568
|
-
|
2569
|
-
_createClass(MDCTextFieldHelperTextFoundation, null, [{
|
2570
|
-
key: 'cssClasses',
|
2571
|
-
|
2572
|
-
/** @return enum {string} */
|
2573
|
-
get: function get() {
|
2574
|
-
return __WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */];
|
2575
|
-
}
|
2576
|
-
|
2577
|
-
/** @return enum {string} */
|
2578
|
-
|
2579
|
-
}, {
|
2580
|
-
key: 'strings',
|
2581
|
-
get: function get() {
|
2582
|
-
return __WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */];
|
2583
|
-
}
|
2584
|
-
|
2585
|
-
/**
|
2586
|
-
* {@see MDCTextFieldHelperTextAdapter} for typing information on parameters and return
|
2587
|
-
* types.
|
2588
|
-
* @return {!MDCTextFieldHelperTextAdapter}
|
2589
|
-
*/
|
2590
|
-
|
2591
|
-
}, {
|
2592
|
-
key: 'defaultAdapter',
|
2593
|
-
get: function get() {
|
2594
|
-
return (/** @type {!MDCTextFieldHelperTextAdapter} */{
|
2595
|
-
addClass: function addClass() {},
|
2596
|
-
removeClass: function removeClass() {},
|
2597
|
-
hasClass: function hasClass() {},
|
2598
|
-
setAttr: function setAttr() {},
|
2599
|
-
removeAttr: function removeAttr() {},
|
2600
|
-
setContent: function setContent() {}
|
2601
|
-
}
|
2602
|
-
);
|
2603
|
-
}
|
2604
|
-
|
2605
|
-
/**
|
2606
|
-
* @param {!MDCTextFieldHelperTextAdapter=} adapter
|
2607
|
-
*/
|
2608
|
-
|
2609
|
-
}]);
|
2610
|
-
|
2611
|
-
function MDCTextFieldHelperTextFoundation() {
|
2612
|
-
var adapter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /** @type {!MDCTextFieldHelperTextAdapter} */{};
|
2613
|
-
|
2614
|
-
_classCallCheck(this, MDCTextFieldHelperTextFoundation);
|
2615
|
-
|
2616
|
-
return _possibleConstructorReturn(this, (MDCTextFieldHelperTextFoundation.__proto__ || Object.getPrototypeOf(MDCTextFieldHelperTextFoundation)).call(this, _extends(MDCTextFieldHelperTextFoundation.defaultAdapter, adapter)));
|
2617
|
-
}
|
2618
|
-
|
2619
|
-
/**
|
2620
|
-
* Sets the content of the helper text field.
|
2621
|
-
* @param {string} content
|
2622
|
-
*/
|
2623
|
-
|
2624
|
-
|
2625
|
-
_createClass(MDCTextFieldHelperTextFoundation, [{
|
2626
|
-
key: 'setContent',
|
2627
|
-
value: function setContent(content) {
|
2628
|
-
this.adapter_.setContent(content);
|
2629
|
-
}
|
2630
|
-
|
2631
|
-
/** Makes the helper text visible to the screen reader. */
|
2632
|
-
|
2633
|
-
}, {
|
2634
|
-
key: 'showToScreenReader',
|
2635
|
-
value: function showToScreenReader() {
|
2636
|
-
this.adapter_.removeAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ARIA_HIDDEN);
|
2637
|
-
}
|
2638
|
-
|
2639
|
-
/**
|
2640
|
-
* Sets the validity of the helper text based on the input validity.
|
2641
|
-
* @param {boolean} inputIsValid
|
2642
|
-
*/
|
2643
|
-
|
2644
|
-
}, {
|
2645
|
-
key: 'setValidity',
|
2646
|
-
value: function setValidity(inputIsValid) {
|
2647
|
-
var helperTextIsPersistent = this.adapter_.hasClass(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].HELPER_TEXT_PERSISTENT);
|
2648
|
-
var helperTextIsValidationMsg = this.adapter_.hasClass(__WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].HELPER_TEXT_VALIDATION_MSG);
|
2649
|
-
var validationMsgNeedsDisplay = helperTextIsValidationMsg && !inputIsValid;
|
2650
|
-
|
2651
|
-
if (validationMsgNeedsDisplay) {
|
2652
|
-
this.adapter_.setAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ROLE, 'alert');
|
2653
|
-
} else {
|
2654
|
-
this.adapter_.removeAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ROLE);
|
2655
|
-
}
|
2656
|
-
|
2657
|
-
if (!helperTextIsPersistent && !validationMsgNeedsDisplay) {
|
2658
|
-
this.hide_();
|
2659
|
-
}
|
2660
|
-
}
|
2661
|
-
|
2662
|
-
/**
|
2663
|
-
* Hides the help text from screen readers.
|
2664
|
-
* @private
|
2665
|
-
*/
|
2666
|
-
|
2667
|
-
}, {
|
2668
|
-
key: 'hide_',
|
2669
|
-
value: function hide_() {
|
2670
|
-
this.adapter_.setAttr(__WEBPACK_IMPORTED_MODULE_2__constants__["b" /* strings */].ARIA_HIDDEN, 'true');
|
2671
|
-
}
|
2672
|
-
}]);
|
2673
|
-
|
2674
|
-
return MDCTextFieldHelperTextFoundation;
|
2675
|
-
}(__WEBPACK_IMPORTED_MODULE_0__material_base_foundation__["a" /* default */]);
|
2676
|
-
|
2677
|
-
/* harmony default export */ __webpack_exports__["a"] = (MDCTextFieldHelperTextFoundation);
|
2678
|
-
|
2679
|
-
/***/ }),
|
2680
|
-
/* 21 */
|
2653
|
+
/* 22 */
|
2681
2654
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2682
2655
|
|
2683
2656
|
"use strict";
|
@@ -2782,25 +2755,25 @@ var MDCTextFieldHelperTextAdapter = function () {
|
|
2782
2755
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCTextFieldHelperTextAdapter);
|
2783
2756
|
|
2784
2757
|
/***/ }),
|
2785
|
-
/*
|
2758
|
+
/* 23 */
|
2786
2759
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2787
2760
|
|
2788
2761
|
"use strict";
|
2789
2762
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
2790
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_auto_init__ = __webpack_require__(
|
2763
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_auto_init__ = __webpack_require__(24);
|
2791
2764
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_base__ = __webpack_require__(1);
|
2792
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_checkbox__ = __webpack_require__(
|
2793
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_dialog__ = __webpack_require__(
|
2794
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_drawer__ = __webpack_require__(
|
2795
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_form_field__ = __webpack_require__(
|
2796
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_grid_list__ = __webpack_require__(
|
2797
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__material_icon_toggle__ = __webpack_require__(
|
2798
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__material_linear_progress__ = __webpack_require__(
|
2765
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_checkbox__ = __webpack_require__(25);
|
2766
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_dialog__ = __webpack_require__(31);
|
2767
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_drawer__ = __webpack_require__(37);
|
2768
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_form_field__ = __webpack_require__(46);
|
2769
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_grid_list__ = __webpack_require__(50);
|
2770
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__material_icon_toggle__ = __webpack_require__(53);
|
2771
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__material_linear_progress__ = __webpack_require__(57);
|
2799
2772
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__material_menu__ = __webpack_require__(9);
|
2800
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__material_radio__ = __webpack_require__(
|
2801
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ripple__ = __webpack_require__(
|
2802
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__material_select__ = __webpack_require__(
|
2803
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__material_selection_control__ = __webpack_require__(
|
2773
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__material_radio__ = __webpack_require__(64);
|
2774
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ripple__ = __webpack_require__(3);
|
2775
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__material_select__ = __webpack_require__(68);
|
2776
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__material_selection_control__ = __webpack_require__(4);
|
2804
2777
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__material_slider__ = __webpack_require__(70);
|
2805
2778
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__material_snackbar__ = __webpack_require__(72);
|
2806
2779
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__material_tabs__ = __webpack_require__(75);
|
@@ -2885,7 +2858,7 @@ __WEBPACK_IMPORTED_MODULE_0__material_auto_init__["a" /* default */].register('M
|
|
2885
2858
|
|
2886
2859
|
|
2887
2860
|
/***/ }),
|
2888
|
-
/*
|
2861
|
+
/* 24 */
|
2889
2862
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2890
2863
|
|
2891
2864
|
"use strict";
|
@@ -2985,7 +2958,7 @@ mdcAutoInit.deregisterAll = function () {
|
|
2985
2958
|
};
|
2986
2959
|
|
2987
2960
|
/***/ }),
|
2988
|
-
/*
|
2961
|
+
/* 25 */
|
2989
2962
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2990
2963
|
|
2991
2964
|
"use strict";
|
@@ -2993,10 +2966,10 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
2993
2966
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCCheckbox", function() { return MDCCheckbox; });
|
2994
2967
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_animation__ = __webpack_require__(5);
|
2995
2968
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_base_component__ = __webpack_require__(2);
|
2996
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_selection_control__ = __webpack_require__(
|
2997
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(
|
2998
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ripple__ = __webpack_require__(
|
2999
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ripple_util__ = __webpack_require__(
|
2969
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_selection_control__ = __webpack_require__(4);
|
2970
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(28);
|
2971
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ripple__ = __webpack_require__(3);
|
2972
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ripple_util__ = __webpack_require__(6);
|
3000
2973
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCCheckboxFoundation", function() { return __WEBPACK_IMPORTED_MODULE_3__foundation__["a"]; });
|
3001
2974
|
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; };
|
3002
2975
|
|
@@ -3242,14 +3215,14 @@ var MDCCheckbox = function (_MDCComponent) {
|
|
3242
3215
|
|
3243
3216
|
|
3244
3217
|
/***/ }),
|
3245
|
-
/*
|
3218
|
+
/* 26 */
|
3246
3219
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3247
3220
|
|
3248
3221
|
"use strict";
|
3249
3222
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
3250
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
3251
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
3252
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
3223
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(13);
|
3224
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(27);
|
3225
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(6);
|
3253
3226
|
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; };
|
3254
3227
|
|
3255
3228
|
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; }; }();
|
@@ -3900,7 +3873,7 @@ var MDCRippleFoundation = function (_MDCFoundation) {
|
|
3900
3873
|
/* harmony default export */ __webpack_exports__["a"] = (MDCRippleFoundation);
|
3901
3874
|
|
3902
3875
|
/***/ }),
|
3903
|
-
/*
|
3876
|
+
/* 27 */
|
3904
3877
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3905
3878
|
|
3906
3879
|
"use strict";
|
@@ -3948,21 +3921,20 @@ var strings = {
|
|
3948
3921
|
var numbers = {
|
3949
3922
|
PADDING: 10,
|
3950
3923
|
INITIAL_ORIGIN_SCALE: 0.6,
|
3951
|
-
DEACTIVATION_TIMEOUT_MS:
|
3952
|
-
FG_DEACTIVATION_MS:
|
3953
|
-
};
|
3924
|
+
DEACTIVATION_TIMEOUT_MS: 225, // Corresponds to $mdc-ripple-translate-duration (i.e. activation animation duration)
|
3925
|
+
FG_DEACTIVATION_MS: 150 };
|
3954
3926
|
|
3955
3927
|
|
3956
3928
|
|
3957
3929
|
/***/ }),
|
3958
|
-
/*
|
3930
|
+
/* 28 */
|
3959
3931
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3960
3932
|
|
3961
3933
|
"use strict";
|
3962
3934
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
3963
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(
|
3964
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adapter__ = __webpack_require__(
|
3965
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(
|
3935
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(4);
|
3936
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adapter__ = __webpack_require__(29);
|
3937
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(30);
|
3966
3938
|
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; };
|
3967
3939
|
|
3968
3940
|
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; }; }();
|
@@ -4332,11 +4304,11 @@ function validDescriptor(inputPropDesc) {
|
|
4332
4304
|
/* harmony default export */ __webpack_exports__["a"] = (MDCCheckboxFoundation);
|
4333
4305
|
|
4334
4306
|
/***/ }),
|
4335
|
-
/*
|
4307
|
+
/* 29 */
|
4336
4308
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4337
4309
|
|
4338
4310
|
"use strict";
|
4339
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_selection_control__ = __webpack_require__(
|
4311
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_selection_control__ = __webpack_require__(4);
|
4340
4312
|
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; }; }();
|
4341
4313
|
|
4342
4314
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -4443,7 +4415,7 @@ var MDCCheckboxAdapter = function () {
|
|
4443
4415
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCCheckboxAdapter);
|
4444
4416
|
|
4445
4417
|
/***/ }),
|
4446
|
-
/*
|
4418
|
+
/* 30 */
|
4447
4419
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4448
4420
|
|
4449
4421
|
"use strict";
|
@@ -4501,16 +4473,16 @@ var numbers = {
|
|
4501
4473
|
|
4502
4474
|
|
4503
4475
|
/***/ }),
|
4504
|
-
/*
|
4476
|
+
/* 31 */
|
4505
4477
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4506
4478
|
|
4507
4479
|
"use strict";
|
4508
4480
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
4509
4481
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCDialog", function() { return MDCDialog; });
|
4510
4482
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
4511
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(
|
4512
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
4513
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(
|
4483
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(3);
|
4484
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(32);
|
4485
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(34);
|
4514
4486
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCDialogFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
4515
4487
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_3__util__; });
|
4516
4488
|
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; }; }();
|
@@ -4679,12 +4651,12 @@ var MDCDialog = function (_MDCComponent) {
|
|
4679
4651
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
4680
4652
|
|
4681
4653
|
/***/ }),
|
4682
|
-
/*
|
4654
|
+
/* 32 */
|
4683
4655
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4684
4656
|
|
4685
4657
|
"use strict";
|
4686
4658
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
4687
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
4659
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(33);
|
4688
4660
|
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; };
|
4689
4661
|
|
4690
4662
|
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; }; }();
|
@@ -4890,7 +4862,7 @@ var MDCDialogFoundation = function (_MDCFoundation) {
|
|
4890
4862
|
/* harmony default export */ __webpack_exports__["a"] = (MDCDialogFoundation);
|
4891
4863
|
|
4892
4864
|
/***/ }),
|
4893
|
-
/*
|
4865
|
+
/* 33 */
|
4894
4866
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4895
4867
|
|
4896
4868
|
"use strict";
|
@@ -4931,13 +4903,13 @@ var strings = {
|
|
4931
4903
|
};
|
4932
4904
|
|
4933
4905
|
/***/ }),
|
4934
|
-
/*
|
4906
|
+
/* 34 */
|
4935
4907
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4936
4908
|
|
4937
4909
|
"use strict";
|
4938
4910
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
4939
4911
|
/* harmony export (immutable) */ __webpack_exports__["createFocusTrapInstance"] = createFocusTrapInstance;
|
4940
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_focus_trap__ = __webpack_require__(
|
4912
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_focus_trap__ = __webpack_require__(35);
|
4941
4913
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_focus_trap___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_focus_trap__);
|
4942
4914
|
/**
|
4943
4915
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
@@ -4967,10 +4939,10 @@ function createFocusTrapInstance(surfaceEl, acceptButtonEl) {
|
|
4967
4939
|
}
|
4968
4940
|
|
4969
4941
|
/***/ }),
|
4970
|
-
/*
|
4942
|
+
/* 35 */
|
4971
4943
|
/***/ (function(module, exports, __webpack_require__) {
|
4972
4944
|
|
4973
|
-
var tabbable = __webpack_require__(
|
4945
|
+
var tabbable = __webpack_require__(36);
|
4974
4946
|
|
4975
4947
|
var listeningFocusTrap = null;
|
4976
4948
|
|
@@ -5208,19 +5180,16 @@ module.exports = focusTrap;
|
|
5208
5180
|
|
5209
5181
|
|
5210
5182
|
/***/ }),
|
5211
|
-
/*
|
5183
|
+
/* 36 */
|
5212
5184
|
/***/ (function(module, exports) {
|
5213
5185
|
|
5214
|
-
module.exports = function(el
|
5215
|
-
options = options || {};
|
5216
|
-
|
5217
|
-
var elementDocument = el.ownerDocument;
|
5186
|
+
module.exports = function(el) {
|
5218
5187
|
var basicTabbables = [];
|
5219
5188
|
var orderedTabbables = [];
|
5220
5189
|
|
5221
5190
|
// A node is "available" if
|
5222
5191
|
// - it's computed style
|
5223
|
-
var isUnavailable = createIsUnavailable(
|
5192
|
+
var isUnavailable = createIsUnavailable();
|
5224
5193
|
|
5225
5194
|
var candidateSelectors = [
|
5226
5195
|
'input',
|
@@ -5233,19 +5202,6 @@ module.exports = function(el, options) {
|
|
5233
5202
|
|
5234
5203
|
var candidates = el.querySelectorAll(candidateSelectors);
|
5235
5204
|
|
5236
|
-
if (options.includeContainer) {
|
5237
|
-
var matches = Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
5238
|
-
|
5239
|
-
if (
|
5240
|
-
candidateSelectors.some(function(candidateSelector) {
|
5241
|
-
return matches.call(el, candidateSelector);
|
5242
|
-
})
|
5243
|
-
) {
|
5244
|
-
candidates = Array.prototype.slice.apply(candidates);
|
5245
|
-
candidates.unshift(el);
|
5246
|
-
}
|
5247
|
-
}
|
5248
|
-
|
5249
5205
|
var candidate, candidateIndex;
|
5250
5206
|
for (var i = 0, l = candidates.length; i < l; i++) {
|
5251
5207
|
candidate = candidates[i];
|
@@ -5255,7 +5211,7 @@ module.exports = function(el, options) {
|
|
5255
5211
|
candidateIndex < 0
|
5256
5212
|
|| (candidate.tagName === 'INPUT' && candidate.type === 'hidden')
|
5257
5213
|
|| candidate.disabled
|
5258
|
-
|| isUnavailable(candidate
|
5214
|
+
|| isUnavailable(candidate)
|
5259
5215
|
) {
|
5260
5216
|
continue;
|
5261
5217
|
}
|
@@ -5264,7 +5220,6 @@ module.exports = function(el, options) {
|
|
5264
5220
|
basicTabbables.push(candidate);
|
5265
5221
|
} else {
|
5266
5222
|
orderedTabbables.push({
|
5267
|
-
index: i,
|
5268
5223
|
tabIndex: candidateIndex,
|
5269
5224
|
node: candidate,
|
5270
5225
|
});
|
@@ -5273,7 +5228,7 @@ module.exports = function(el, options) {
|
|
5273
5228
|
|
5274
5229
|
var tabbableNodes = orderedTabbables
|
5275
5230
|
.sort(function(a, b) {
|
5276
|
-
return a.tabIndex
|
5231
|
+
return a.tabIndex - b.tabIndex;
|
5277
5232
|
})
|
5278
5233
|
.map(function(a) {
|
5279
5234
|
return a.node
|
@@ -5284,7 +5239,7 @@ module.exports = function(el, options) {
|
|
5284
5239
|
return tabbableNodes;
|
5285
5240
|
}
|
5286
5241
|
|
5287
|
-
function createIsUnavailable(
|
5242
|
+
function createIsUnavailable() {
|
5288
5243
|
// Node cache must be refreshed on every check, in case
|
5289
5244
|
// the content of the element has changed
|
5290
5245
|
var isOffCache = [];
|
@@ -5295,14 +5250,14 @@ function createIsUnavailable(elementDocument) {
|
|
5295
5250
|
// "off" state, so we need to recursively check parents.
|
5296
5251
|
|
5297
5252
|
function isOff(node, nodeComputedStyle) {
|
5298
|
-
if (node ===
|
5253
|
+
if (node === document.documentElement) return false;
|
5299
5254
|
|
5300
5255
|
// Find the cached node (Array.prototype.find not available in IE9)
|
5301
5256
|
for (var i = 0, length = isOffCache.length; i < length; i++) {
|
5302
5257
|
if (isOffCache[i][0] === node) return isOffCache[i][1];
|
5303
5258
|
}
|
5304
5259
|
|
5305
|
-
nodeComputedStyle = nodeComputedStyle ||
|
5260
|
+
nodeComputedStyle = nodeComputedStyle || window.getComputedStyle(node);
|
5306
5261
|
|
5307
5262
|
var result = false;
|
5308
5263
|
|
@@ -5318,9 +5273,9 @@ function createIsUnavailable(elementDocument) {
|
|
5318
5273
|
}
|
5319
5274
|
|
5320
5275
|
return function isUnavailable(node) {
|
5321
|
-
if (node ===
|
5276
|
+
if (node === document.documentElement) return false;
|
5322
5277
|
|
5323
|
-
var computedStyle =
|
5278
|
+
var computedStyle = window.getComputedStyle(node);
|
5324
5279
|
|
5325
5280
|
if (isOff(node, computedStyle)) return true;
|
5326
5281
|
|
@@ -5330,16 +5285,16 @@ function createIsUnavailable(elementDocument) {
|
|
5330
5285
|
|
5331
5286
|
|
5332
5287
|
/***/ }),
|
5333
|
-
/*
|
5288
|
+
/* 37 */
|
5334
5289
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5335
5290
|
|
5336
5291
|
"use strict";
|
5337
5292
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
5338
5293
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(8);
|
5339
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__temporary__ = __webpack_require__(
|
5294
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__temporary__ = __webpack_require__(38);
|
5340
5295
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawer", function() { return __WEBPACK_IMPORTED_MODULE_1__temporary__["a"]; });
|
5341
5296
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawerFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__temporary__["b"]; });
|
5342
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__persistent__ = __webpack_require__(
|
5297
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__persistent__ = __webpack_require__(43);
|
5343
5298
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCPersistentDrawer", function() { return __WEBPACK_IMPORTED_MODULE_2__persistent__["a"]; });
|
5344
5299
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCPersistentDrawerFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__persistent__["b"]; });
|
5345
5300
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_0__util__; });
|
@@ -5365,13 +5320,13 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
5365
5320
|
|
5366
5321
|
|
5367
5322
|
/***/ }),
|
5368
|
-
/*
|
5323
|
+
/* 38 */
|
5369
5324
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5370
5325
|
|
5371
5326
|
"use strict";
|
5372
5327
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTemporaryDrawer; });
|
5373
5328
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
5374
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
5329
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(39);
|
5375
5330
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(8);
|
5376
5331
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
5377
5332
|
/* unused harmony reexport util */
|
@@ -5441,6 +5396,9 @@ var MDCTemporaryDrawer = function (_MDCComponent) {
|
|
5441
5396
|
removeBodyClass: function removeBodyClass(className) {
|
5442
5397
|
return document.body.classList.remove(className);
|
5443
5398
|
},
|
5399
|
+
eventTargetHasClass: function eventTargetHasClass(target, className) {
|
5400
|
+
return target.classList.contains(className);
|
5401
|
+
},
|
5444
5402
|
hasNecessaryDom: function hasNecessaryDom() {
|
5445
5403
|
return Boolean(_this2.drawer);
|
5446
5404
|
},
|
@@ -5536,12 +5494,12 @@ var MDCTemporaryDrawer = function (_MDCComponent) {
|
|
5536
5494
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
5537
5495
|
|
5538
5496
|
/***/ }),
|
5539
|
-
/*
|
5497
|
+
/* 39 */
|
5540
5498
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5541
5499
|
|
5542
5500
|
"use strict";
|
5543
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(
|
5544
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
5501
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(7);
|
5502
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(42);
|
5545
5503
|
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; };
|
5546
5504
|
|
5547
5505
|
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
|
@@ -5595,7 +5553,11 @@ var MDCTemporaryDrawerFoundation = function (_MDCSlidableDrawerFou) {
|
|
5595
5553
|
isDrawer: function isDrawer() {
|
5596
5554
|
return false;
|
5597
5555
|
},
|
5598
|
-
updateCssVariable: function updateCssVariable() /* value: string */{}
|
5556
|
+
updateCssVariable: function updateCssVariable() /* value: string */{},
|
5557
|
+
eventTargetHasClass: function eventTargetHasClass() {
|
5558
|
+
return (/* target: EventTarget, className: string */ /* boolean */false
|
5559
|
+
);
|
5560
|
+
}
|
5599
5561
|
});
|
5600
5562
|
}
|
5601
5563
|
}]);
|
@@ -5605,8 +5567,10 @@ var MDCTemporaryDrawerFoundation = function (_MDCSlidableDrawerFou) {
|
|
5605
5567
|
|
5606
5568
|
var _this = _possibleConstructorReturn(this, (MDCTemporaryDrawerFoundation.__proto__ || Object.getPrototypeOf(MDCTemporaryDrawerFoundation)).call(this, _extends(MDCTemporaryDrawerFoundation.defaultAdapter, adapter), MDCTemporaryDrawerFoundation.cssClasses.ROOT, MDCTemporaryDrawerFoundation.cssClasses.ANIMATING, MDCTemporaryDrawerFoundation.cssClasses.OPEN));
|
5607
5569
|
|
5608
|
-
_this.componentClickHandler_ = function () {
|
5609
|
-
|
5570
|
+
_this.componentClickHandler_ = function (evt) {
|
5571
|
+
if (_this.adapter_.eventTargetHasClass(evt.target, __WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].ROOT)) {
|
5572
|
+
_this.close(true);
|
5573
|
+
}
|
5610
5574
|
};
|
5611
5575
|
return _this;
|
5612
5576
|
}
|
@@ -5692,7 +5656,7 @@ var MDCTemporaryDrawerFoundation = function (_MDCSlidableDrawerFou) {
|
|
5692
5656
|
/* harmony default export */ __webpack_exports__["a"] = (MDCTemporaryDrawerFoundation);
|
5693
5657
|
|
5694
5658
|
/***/ }),
|
5695
|
-
/*
|
5659
|
+
/* 40 */
|
5696
5660
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5697
5661
|
|
5698
5662
|
"use strict";
|
@@ -5716,7 +5680,7 @@ var MDCTemporaryDrawerFoundation = function (_MDCSlidableDrawerFou) {
|
|
5716
5680
|
var FOCUSABLE_ELEMENTS = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), ' + 'button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]';
|
5717
5681
|
|
5718
5682
|
/***/ }),
|
5719
|
-
/*
|
5683
|
+
/* 41 */
|
5720
5684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5721
5685
|
|
5722
5686
|
"use strict";
|
@@ -5806,9 +5770,6 @@ var MDCSlidableDrawerFoundation = function (_MDCFoundation) {
|
|
5806
5770
|
|
5807
5771
|
_this.inert_ = false;
|
5808
5772
|
|
5809
|
-
_this.drawerClickHandler_ = function (evt) {
|
5810
|
-
return evt.stopPropagation();
|
5811
|
-
};
|
5812
5773
|
_this.componentTouchStartHandler_ = function (evt) {
|
5813
5774
|
return _this.handleTouchStart_(evt);
|
5814
5775
|
};
|
@@ -5847,7 +5808,6 @@ var MDCSlidableDrawerFoundation = function (_MDCFoundation) {
|
|
5847
5808
|
this.isOpen_ = false;
|
5848
5809
|
}
|
5849
5810
|
|
5850
|
-
this.adapter_.registerDrawerInteractionHandler('click', this.drawerClickHandler_);
|
5851
5811
|
this.adapter_.registerDrawerInteractionHandler('touchstart', this.componentTouchStartHandler_);
|
5852
5812
|
this.adapter_.registerInteractionHandler('touchmove', this.componentTouchMoveHandler_);
|
5853
5813
|
this.adapter_.registerInteractionHandler('touchend', this.componentTouchEndHandler_);
|
@@ -5855,7 +5815,6 @@ var MDCSlidableDrawerFoundation = function (_MDCFoundation) {
|
|
5855
5815
|
}, {
|
5856
5816
|
key: 'destroy',
|
5857
5817
|
value: function destroy() {
|
5858
|
-
this.adapter_.deregisterDrawerInteractionHandler('click', this.drawerClickHandler_);
|
5859
5818
|
this.adapter_.deregisterDrawerInteractionHandler('touchstart', this.componentTouchStartHandler_);
|
5860
5819
|
this.adapter_.deregisterInteractionHandler('touchmove', this.componentTouchMoveHandler_);
|
5861
5820
|
this.adapter_.deregisterInteractionHandler('touchend', this.componentTouchEndHandler_);
|
@@ -6027,13 +5986,13 @@ var MDCSlidableDrawerFoundation = function (_MDCFoundation) {
|
|
6027
5986
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCFoundation"]);
|
6028
5987
|
|
6029
5988
|
/***/ }),
|
6030
|
-
/*
|
5989
|
+
/* 42 */
|
6031
5990
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6032
5991
|
|
6033
5992
|
"use strict";
|
6034
5993
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
6035
5994
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
6036
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(
|
5995
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(7);
|
6037
5996
|
/**
|
6038
5997
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
6039
5998
|
*
|
@@ -6068,13 +6027,13 @@ var strings = {
|
|
6068
6027
|
};
|
6069
6028
|
|
6070
6029
|
/***/ }),
|
6071
|
-
/*
|
6030
|
+
/* 43 */
|
6072
6031
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6073
6032
|
|
6074
6033
|
"use strict";
|
6075
6034
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCPersistentDrawer; });
|
6076
6035
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
6077
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
6036
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(44);
|
6078
6037
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(8);
|
6079
6038
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
6080
6039
|
/* unused harmony reexport util */
|
@@ -6226,12 +6185,12 @@ var MDCPersistentDrawer = function (_MDCComponent) {
|
|
6226
6185
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
6227
6186
|
|
6228
6187
|
/***/ }),
|
6229
|
-
/*
|
6188
|
+
/* 44 */
|
6230
6189
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6231
6190
|
|
6232
6191
|
"use strict";
|
6233
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(
|
6234
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
6192
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(7);
|
6193
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(45);
|
6235
6194
|
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; };
|
6236
6195
|
|
6237
6196
|
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; }; }();
|
@@ -6304,13 +6263,13 @@ var MDCPersistentDrawerFoundation = function (_MDCSlidableDrawerFou) {
|
|
6304
6263
|
/* harmony default export */ __webpack_exports__["a"] = (MDCPersistentDrawerFoundation);
|
6305
6264
|
|
6306
6265
|
/***/ }),
|
6307
|
-
/*
|
6266
|
+
/* 45 */
|
6308
6267
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6309
6268
|
|
6310
6269
|
"use strict";
|
6311
6270
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
6312
6271
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
6313
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(
|
6272
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__slidable__ = __webpack_require__(7);
|
6314
6273
|
/**
|
6315
6274
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
6316
6275
|
*
|
@@ -6343,15 +6302,15 @@ var strings = {
|
|
6343
6302
|
};
|
6344
6303
|
|
6345
6304
|
/***/ }),
|
6346
|
-
/*
|
6305
|
+
/* 46 */
|
6347
6306
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6348
6307
|
|
6349
6308
|
"use strict";
|
6350
6309
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
6351
6310
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFormField", function() { return MDCFormField; });
|
6352
6311
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
6353
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
6354
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_selection_control__ = __webpack_require__(
|
6312
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(47);
|
6313
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_selection_control__ = __webpack_require__(4);
|
6355
6314
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFormFieldFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
6356
6315
|
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; }; }();
|
6357
6316
|
|
@@ -6477,13 +6436,13 @@ var MDCFormField = function (_MDCComponent) {
|
|
6477
6436
|
|
6478
6437
|
|
6479
6438
|
/***/ }),
|
6480
|
-
/*
|
6439
|
+
/* 47 */
|
6481
6440
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6482
6441
|
|
6483
6442
|
"use strict";
|
6484
6443
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
6485
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
6486
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
6444
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(48);
|
6445
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(49);
|
6487
6446
|
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; };
|
6488
6447
|
|
6489
6448
|
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; }; }();
|
@@ -6595,7 +6554,7 @@ var MDCFormFieldFoundation = function (_MDCFoundation) {
|
|
6595
6554
|
/* harmony default export */ __webpack_exports__["a"] = (MDCFormFieldFoundation);
|
6596
6555
|
|
6597
6556
|
/***/ }),
|
6598
|
-
/*
|
6557
|
+
/* 48 */
|
6599
6558
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6600
6559
|
|
6601
6560
|
"use strict";
|
@@ -6673,7 +6632,7 @@ var MDCFormFieldAdapter = function () {
|
|
6673
6632
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCFormFieldAdapter);
|
6674
6633
|
|
6675
6634
|
/***/ }),
|
6676
|
-
/*
|
6635
|
+
/* 49 */
|
6677
6636
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6678
6637
|
|
6679
6638
|
"use strict";
|
@@ -6709,14 +6668,14 @@ var strings = {
|
|
6709
6668
|
|
6710
6669
|
|
6711
6670
|
/***/ }),
|
6712
|
-
/*
|
6671
|
+
/* 50 */
|
6713
6672
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6714
6673
|
|
6715
6674
|
"use strict";
|
6716
6675
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
6717
6676
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCGridList", function() { return MDCGridList; });
|
6718
6677
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
6719
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
6678
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(51);
|
6720
6679
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCGridListFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
6721
6680
|
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; }; }();
|
6722
6681
|
|
@@ -6794,12 +6753,12 @@ var MDCGridList = function (_MDCComponent) {
|
|
6794
6753
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
6795
6754
|
|
6796
6755
|
/***/ }),
|
6797
|
-
/*
|
6756
|
+
/* 51 */
|
6798
6757
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6799
6758
|
|
6800
6759
|
"use strict";
|
6801
6760
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
6802
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
6761
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(52);
|
6803
6762
|
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; };
|
6804
6763
|
|
6805
6764
|
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; }; }();
|
@@ -6915,7 +6874,7 @@ var MDCGridListFoundation = function (_MDCFoundation) {
|
|
6915
6874
|
/* harmony default export */ __webpack_exports__["a"] = (MDCGridListFoundation);
|
6916
6875
|
|
6917
6876
|
/***/ }),
|
6918
|
-
/*
|
6877
|
+
/* 52 */
|
6919
6878
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6920
6879
|
|
6921
6880
|
"use strict";
|
@@ -6941,15 +6900,15 @@ var strings = {
|
|
6941
6900
|
};
|
6942
6901
|
|
6943
6902
|
/***/ }),
|
6944
|
-
/*
|
6903
|
+
/* 53 */
|
6945
6904
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6946
6905
|
|
6947
6906
|
"use strict";
|
6948
6907
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
6949
6908
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggle", function() { return MDCIconToggle; });
|
6950
6909
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
6951
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
6952
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ripple__ = __webpack_require__(
|
6910
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(54);
|
6911
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ripple__ = __webpack_require__(3);
|
6953
6912
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
6954
6913
|
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; };
|
6955
6914
|
|
@@ -7169,13 +7128,13 @@ var MDCIconToggle = function (_MDCComponent) {
|
|
7169
7128
|
|
7170
7129
|
|
7171
7130
|
/***/ }),
|
7172
|
-
/*
|
7131
|
+
/* 54 */
|
7173
7132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7174
7133
|
|
7175
7134
|
"use strict";
|
7176
7135
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
7177
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
7178
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
7136
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(55);
|
7137
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(56);
|
7179
7138
|
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; };
|
7180
7139
|
|
7181
7140
|
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; }; }();
|
@@ -7297,6 +7256,7 @@ var MDCIconToggleFoundation = function (_MDCFoundation) {
|
|
7297
7256
|
key: 'init',
|
7298
7257
|
value: function init() {
|
7299
7258
|
this.refreshToggleData();
|
7259
|
+
this.savedTabIndex_ = this.adapter_.getTabIndex();
|
7300
7260
|
this.adapter_.registerInteractionHandler('click', this.clickHandler_);
|
7301
7261
|
this.adapter_.registerInteractionHandler('keydown', this.keydownHandler_);
|
7302
7262
|
this.adapter_.registerInteractionHandler('keyup', this.keyupHandler_);
|
@@ -7487,7 +7447,7 @@ IconToggleState.prototype.cssClass;
|
|
7487
7447
|
/* harmony default export */ __webpack_exports__["a"] = (MDCIconToggleFoundation);
|
7488
7448
|
|
7489
7449
|
/***/ }),
|
7490
|
-
/*
|
7450
|
+
/* 55 */
|
7491
7451
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7492
7452
|
|
7493
7453
|
"use strict";
|
@@ -7634,7 +7594,7 @@ var IconToggleEvent = void 0;
|
|
7634
7594
|
|
7635
7595
|
|
7636
7596
|
/***/ }),
|
7637
|
-
/*
|
7597
|
+
/* 56 */
|
7638
7598
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7639
7599
|
|
7640
7600
|
"use strict";
|
@@ -7676,14 +7636,14 @@ var strings = {
|
|
7676
7636
|
|
7677
7637
|
|
7678
7638
|
/***/ }),
|
7679
|
-
/*
|
7639
|
+
/* 57 */
|
7680
7640
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7681
7641
|
|
7682
7642
|
"use strict";
|
7683
7643
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
7684
7644
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCLinearProgress", function() { return MDCLinearProgress; });
|
7685
7645
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
7686
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
7646
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(58);
|
7687
7647
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCLinearProgressFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
7688
7648
|
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; }; }();
|
7689
7649
|
|
@@ -7790,13 +7750,13 @@ var MDCLinearProgress = function (_MDCComponent) {
|
|
7790
7750
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
7791
7751
|
|
7792
7752
|
/***/ }),
|
7793
|
-
/*
|
7753
|
+
/* 58 */
|
7794
7754
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7795
7755
|
|
7796
7756
|
"use strict";
|
7797
7757
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
7798
7758
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_animation__ = __webpack_require__(5);
|
7799
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
7759
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(59);
|
7800
7760
|
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; };
|
7801
7761
|
|
7802
7762
|
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; }; }();
|
@@ -7934,7 +7894,7 @@ var MDCLinearProgressFoundation = function (_MDCFoundation) {
|
|
7934
7894
|
/* harmony default export */ __webpack_exports__["a"] = (MDCLinearProgressFoundation);
|
7935
7895
|
|
7936
7896
|
/***/ }),
|
7937
|
-
/*
|
7897
|
+
/* 59 */
|
7938
7898
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7939
7899
|
|
7940
7900
|
"use strict";
|
@@ -7968,13 +7928,13 @@ var strings = {
|
|
7968
7928
|
};
|
7969
7929
|
|
7970
7930
|
/***/ }),
|
7971
|
-
/*
|
7931
|
+
/* 60 */
|
7972
7932
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7973
7933
|
|
7974
7934
|
"use strict";
|
7975
7935
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCSimpleMenu; });
|
7976
7936
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
7977
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
7937
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(61);
|
7978
7938
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(10);
|
7979
7939
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
7980
7940
|
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; }; }();
|
@@ -8083,6 +8043,9 @@ var MDCSimpleMenu = function (_MDCComponent) {
|
|
8083
8043
|
getAttributeForEventTarget: function getAttributeForEventTarget(target, attributeName) {
|
8084
8044
|
return target.getAttribute(attributeName);
|
8085
8045
|
},
|
8046
|
+
eventTargetHasClass: function eventTargetHasClass(target, className) {
|
8047
|
+
return target.classList.contains(className);
|
8048
|
+
},
|
8086
8049
|
getInnerDimensions: function getInnerDimensions() {
|
8087
8050
|
var itemsContainer = _this2.itemsContainer_;
|
8088
8051
|
|
@@ -8228,13 +8191,13 @@ var MDCSimpleMenu = function (_MDCComponent) {
|
|
8228
8191
|
|
8229
8192
|
|
8230
8193
|
/***/ }),
|
8231
|
-
/*
|
8194
|
+
/* 61 */
|
8232
8195
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8233
8196
|
|
8234
8197
|
"use strict";
|
8235
8198
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
8236
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
8237
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
8199
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(62);
|
8200
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(63);
|
8238
8201
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(10);
|
8239
8202
|
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; };
|
8240
8203
|
|
@@ -8320,6 +8283,7 @@ var MDCSimpleMenuFoundation = function (_MDCFoundation) {
|
|
8320
8283
|
return false;
|
8321
8284
|
},
|
8322
8285
|
getAttributeForEventTarget: function getAttributeForEventTarget() {},
|
8286
|
+
eventTargetHasClass: function eventTargetHasClass() {},
|
8323
8287
|
getInnerDimensions: function getInnerDimensions() {
|
8324
8288
|
return {};
|
8325
8289
|
},
|
@@ -8395,8 +8359,7 @@ var MDCSimpleMenuFoundation = function (_MDCFoundation) {
|
|
8395
8359
|
};
|
8396
8360
|
/** @private {function(!Event)} */
|
8397
8361
|
_this.documentClickHandler_ = function (evt) {
|
8398
|
-
_this.
|
8399
|
-
_this.close(evt);
|
8362
|
+
return _this.handleDocumentClick_(evt);
|
8400
8363
|
};
|
8401
8364
|
/** @private {boolean} */
|
8402
8365
|
_this.isOpen_ = false;
|
@@ -8619,14 +8582,36 @@ var MDCSimpleMenuFoundation = function (_MDCFoundation) {
|
|
8619
8582
|
}
|
8620
8583
|
|
8621
8584
|
/**
|
8622
|
-
* Handle
|
8585
|
+
* Handle clicks and cancel the menu if not a list item
|
8623
8586
|
* @param {!Event} evt
|
8624
|
-
* @return {boolean}
|
8625
8587
|
* @private
|
8626
8588
|
*/
|
8627
8589
|
|
8590
|
+
}, {
|
8591
|
+
key: 'handleDocumentClick_',
|
8592
|
+
value: function handleDocumentClick_(evt) {
|
8593
|
+
var el = evt.target;
|
8594
|
+
|
8595
|
+
while (el && el !== document.documentElement) {
|
8596
|
+
if (this.adapter_.eventTargetHasClass(el, __WEBPACK_IMPORTED_MODULE_2__constants__["a" /* cssClasses */].LIST_ITEM)) {
|
8597
|
+
return;
|
8598
|
+
}
|
8599
|
+
el = el.parentNode;
|
8600
|
+
}
|
8601
|
+
|
8602
|
+
this.adapter_.notifyCancel();
|
8603
|
+
this.close(evt);
|
8604
|
+
}
|
8628
8605
|
}, {
|
8629
8606
|
key: 'handleKeyboardDown_',
|
8607
|
+
|
8608
|
+
|
8609
|
+
/**
|
8610
|
+
* Handle keys that we want to repeat on hold (tab and arrows).
|
8611
|
+
* @param {!Event} evt
|
8612
|
+
* @return {boolean}
|
8613
|
+
* @private
|
8614
|
+
*/
|
8630
8615
|
value: function handleKeyboardDown_(evt) {
|
8631
8616
|
// Do nothing if Alt, Ctrl or Meta are pressed.
|
8632
8617
|
if (evt.altKey || evt.ctrlKey || evt.metaKey) {
|
@@ -8862,7 +8847,7 @@ var MDCSimpleMenuFoundation = function (_MDCFoundation) {
|
|
8862
8847
|
/* harmony default export */ __webpack_exports__["a"] = (MDCSimpleMenuFoundation);
|
8863
8848
|
|
8864
8849
|
/***/ }),
|
8865
|
-
/*
|
8850
|
+
/* 62 */
|
8866
8851
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8867
8852
|
|
8868
8853
|
"use strict";
|
@@ -8950,6 +8935,16 @@ var MDCSimpleMenuAdapter = function () {
|
|
8950
8935
|
key: "getAttributeForEventTarget",
|
8951
8936
|
value: function getAttributeForEventTarget(target, attributeName) {}
|
8952
8937
|
|
8938
|
+
/**
|
8939
|
+
* @param {EventTarget} target
|
8940
|
+
* @param {string} className
|
8941
|
+
* @return {boolean}
|
8942
|
+
*/
|
8943
|
+
|
8944
|
+
}, {
|
8945
|
+
key: "eventTargetHasClass",
|
8946
|
+
value: function eventTargetHasClass(target, className) {}
|
8947
|
+
|
8953
8948
|
/** @return {{ width: number, height: number }} */
|
8954
8949
|
|
8955
8950
|
}, {
|
@@ -9127,7 +9122,7 @@ var MDCSimpleMenuAdapter = function () {
|
|
9127
9122
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCSimpleMenuAdapter);
|
9128
9123
|
|
9129
9124
|
/***/ }),
|
9130
|
-
/*
|
9125
|
+
/* 63 */
|
9131
9126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9132
9127
|
|
9133
9128
|
"use strict";
|
@@ -9158,7 +9153,8 @@ var cssClasses = {
|
|
9158
9153
|
ANIMATING: 'mdc-simple-menu--animating',
|
9159
9154
|
TOP_RIGHT: 'mdc-simple-menu--open-from-top-right',
|
9160
9155
|
BOTTOM_LEFT: 'mdc-simple-menu--open-from-bottom-left',
|
9161
|
-
BOTTOM_RIGHT: 'mdc-simple-menu--open-from-bottom-right'
|
9156
|
+
BOTTOM_RIGHT: 'mdc-simple-menu--open-from-bottom-right',
|
9157
|
+
LIST_ITEM: 'mdc-list-item'
|
9162
9158
|
};
|
9163
9159
|
|
9164
9160
|
/** @enum {string} */
|
@@ -9191,16 +9187,16 @@ var numbers = {
|
|
9191
9187
|
|
9192
9188
|
|
9193
9189
|
/***/ }),
|
9194
|
-
/*
|
9190
|
+
/* 64 */
|
9195
9191
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9196
9192
|
|
9197
9193
|
"use strict";
|
9198
9194
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
9199
9195
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRadio", function() { return MDCRadio; });
|
9200
9196
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
9201
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(
|
9202
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
9203
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_ripple__ = __webpack_require__(
|
9197
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(4);
|
9198
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(65);
|
9199
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_ripple__ = __webpack_require__(3);
|
9204
9200
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRadioFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
9205
9201
|
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; };
|
9206
9202
|
|
@@ -9413,14 +9409,14 @@ var MDCRadio = function (_MDCComponent) {
|
|
9413
9409
|
|
9414
9410
|
|
9415
9411
|
/***/ }),
|
9416
|
-
/*
|
9412
|
+
/* 65 */
|
9417
9413
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9418
9414
|
|
9419
9415
|
"use strict";
|
9420
9416
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
9421
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(
|
9422
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adapter__ = __webpack_require__(
|
9423
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(
|
9417
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_selection_control__ = __webpack_require__(4);
|
9418
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adapter__ = __webpack_require__(66);
|
9419
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(67);
|
9424
9420
|
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; }; }();
|
9425
9421
|
|
9426
9422
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -9572,11 +9568,11 @@ var MDCRadioFoundation = function (_MDCFoundation) {
|
|
9572
9568
|
/* harmony default export */ __webpack_exports__["a"] = (MDCRadioFoundation);
|
9573
9569
|
|
9574
9570
|
/***/ }),
|
9575
|
-
/*
|
9571
|
+
/* 66 */
|
9576
9572
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9577
9573
|
|
9578
9574
|
"use strict";
|
9579
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_selection_control__ = __webpack_require__(
|
9575
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_selection_control__ = __webpack_require__(4);
|
9580
9576
|
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; }; }();
|
9581
9577
|
|
9582
9578
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -9649,7 +9645,7 @@ var MDCRadioAdapter = function () {
|
|
9649
9645
|
/* unused harmony default export */ var _unused_webpack_default_export = (MDCRadioAdapter);
|
9650
9646
|
|
9651
9647
|
/***/ }),
|
9652
|
-
/*
|
9648
|
+
/* 67 */
|
9653
9649
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9654
9650
|
|
9655
9651
|
"use strict";
|
@@ -9686,16 +9682,18 @@ var cssClasses = {
|
|
9686
9682
|
|
9687
9683
|
|
9688
9684
|
/***/ }),
|
9689
|
-
/*
|
9685
|
+
/* 68 */
|
9690
9686
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9691
9687
|
|
9692
9688
|
"use strict";
|
9693
9689
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
9694
9690
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelect", function() { return MDCSelect; });
|
9695
9691
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
9696
|
-
/* harmony import */ var
|
9697
|
-
/* harmony import */ var
|
9698
|
-
/* harmony
|
9692
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(3);
|
9693
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_menu__ = __webpack_require__(9);
|
9694
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(69);
|
9695
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__constants__ = __webpack_require__(14);
|
9696
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectFoundation", function() { return __WEBPACK_IMPORTED_MODULE_3__foundation__["a"]; });
|
9699
9697
|
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; }; }();
|
9700
9698
|
|
9701
9699
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -9727,6 +9725,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
9727
9725
|
|
9728
9726
|
|
9729
9727
|
|
9728
|
+
|
9729
|
+
|
9730
9730
|
var MDCSelect = function (_MDCComponent) {
|
9731
9731
|
_inherits(MDCSelect, _MDCComponent);
|
9732
9732
|
|
@@ -9756,25 +9756,45 @@ var MDCSelect = function (_MDCComponent) {
|
|
9756
9756
|
key: 'initialize',
|
9757
9757
|
value: function initialize() {
|
9758
9758
|
var menuFactory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (el) {
|
9759
|
-
return new
|
9759
|
+
return new __WEBPACK_IMPORTED_MODULE_2__material_menu__["MDCSimpleMenu"](el);
|
9760
9760
|
};
|
9761
9761
|
|
9762
|
-
this.
|
9762
|
+
this.surface_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */].SURFACE_SELECTOR);
|
9763
|
+
this.label_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */].LABEL_SELECTOR);
|
9764
|
+
this.bottomLine_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */].BOTTOM_LINE_SELECTOR);
|
9765
|
+
this.selectedText_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */].SELECTED_TEXT_SELECTOR);
|
9766
|
+
this.menuEl_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */].MENU_SELECTOR);
|
9763
9767
|
this.menu_ = menuFactory(this.menuEl_);
|
9764
|
-
|
9768
|
+
|
9769
|
+
this.ripple = new __WEBPACK_IMPORTED_MODULE_1__material_ripple__["MDCRipple"](this.surface_);
|
9765
9770
|
}
|
9766
9771
|
}, {
|
9767
9772
|
key: 'getDefaultFoundation',
|
9768
9773
|
value: function getDefaultFoundation() {
|
9769
9774
|
var _this2 = this;
|
9770
9775
|
|
9771
|
-
return new
|
9776
|
+
return new __WEBPACK_IMPORTED_MODULE_3__foundation__["a" /* default */]({
|
9772
9777
|
addClass: function addClass(className) {
|
9773
9778
|
return _this2.root_.classList.add(className);
|
9774
9779
|
},
|
9775
9780
|
removeClass: function removeClass(className) {
|
9776
9781
|
return _this2.root_.classList.remove(className);
|
9777
9782
|
},
|
9783
|
+
addClassToLabel: function addClassToLabel(className) {
|
9784
|
+
return _this2.label_.classList.add(className);
|
9785
|
+
},
|
9786
|
+
removeClassFromLabel: function removeClassFromLabel(className) {
|
9787
|
+
return _this2.label_.classList.remove(className);
|
9788
|
+
},
|
9789
|
+
addClassToBottomLine: function addClassToBottomLine(className) {
|
9790
|
+
return _this2.bottomLine_.classList.add(className);
|
9791
|
+
},
|
9792
|
+
removeClassFromBottomLine: function removeClassFromBottomLine(className) {
|
9793
|
+
return _this2.bottomLine_.classList.remove(className);
|
9794
|
+
},
|
9795
|
+
setBottomLineAttr: function setBottomLineAttr(attr, value) {
|
9796
|
+
return _this2.bottomLine_.setAttribute(attr, value);
|
9797
|
+
},
|
9778
9798
|
setAttr: function setAttr(attr, value) {
|
9779
9799
|
return _this2.root_.setAttribute(attr, value);
|
9780
9800
|
},
|
@@ -9782,7 +9802,7 @@ var MDCSelect = function (_MDCComponent) {
|
|
9782
9802
|
return _this2.root_.removeAttribute(attr, value);
|
9783
9803
|
},
|
9784
9804
|
computeBoundingRect: function computeBoundingRect() {
|
9785
|
-
return _this2.
|
9805
|
+
return _this2.surface_.getBoundingClientRect();
|
9786
9806
|
},
|
9787
9807
|
registerInteractionHandler: function registerInteractionHandler(type, handler) {
|
9788
9808
|
return _this2.root_.addEventListener(type, handler);
|
@@ -9800,10 +9820,10 @@ var MDCSelect = function (_MDCComponent) {
|
|
9800
9820
|
_this2.root_.tabIndex = -1;
|
9801
9821
|
},
|
9802
9822
|
getComputedStyleValue: function getComputedStyleValue(prop) {
|
9803
|
-
return window.getComputedStyle(_this2.
|
9823
|
+
return window.getComputedStyle(_this2.surface_).getPropertyValue(prop);
|
9804
9824
|
},
|
9805
9825
|
setStyle: function setStyle(propertyName, value) {
|
9806
|
-
return _this2.
|
9826
|
+
return _this2.surface_.style.setProperty(propertyName, value);
|
9807
9827
|
},
|
9808
9828
|
create2dRenderingContext: function create2dRenderingContext() {
|
9809
9829
|
return document.createElement('canvas').getContext('2d');
|
@@ -9854,7 +9874,7 @@ var MDCSelect = function (_MDCComponent) {
|
|
9854
9874
|
return _this2.menu_.unlisten(type, handler);
|
9855
9875
|
},
|
9856
9876
|
notifyChange: function notifyChange() {
|
9857
|
-
return _this2.emit(
|
9877
|
+
return _this2.emit(__WEBPACK_IMPORTED_MODULE_3__foundation__["a" /* default */].strings.CHANGE_EVENT, _this2);
|
9858
9878
|
},
|
9859
9879
|
getWindowInnerHeight: function getWindowInnerHeight() {
|
9860
9880
|
return window.innerHeight;
|
@@ -9922,12 +9942,12 @@ var MDCSelect = function (_MDCComponent) {
|
|
9922
9942
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
9923
9943
|
|
9924
9944
|
/***/ }),
|
9925
|
-
/*
|
9945
|
+
/* 69 */
|
9926
9946
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9927
9947
|
|
9928
9948
|
"use strict";
|
9929
9949
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(1);
|
9930
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
9950
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(14);
|
9931
9951
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_menu__ = __webpack_require__(9);
|
9932
9952
|
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; };
|
9933
9953
|
|
@@ -9980,6 +10000,11 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
9980
10000
|
return {
|
9981
10001
|
addClass: function addClass() /* className: string */{},
|
9982
10002
|
removeClass: function removeClass() /* className: string */{},
|
10003
|
+
addClassToLabel: function addClassToLabel() /* className: string */{},
|
10004
|
+
removeClassFromLabel: function removeClassFromLabel() /* className: string */{},
|
10005
|
+
addClassToBottomLine: function addClassToBottomLine() /* className: string */{},
|
10006
|
+
removeClassFromBottomLine: function removeClassFromBottomLine() /* className: string */{},
|
10007
|
+
setBottomLineAttr: function setBottomLineAttr() /* attr: string, value: string */{},
|
9983
10008
|
addBodyClass: function addBodyClass() /* className: string */{},
|
9984
10009
|
removeBodyClass: function removeBodyClass() /* className: string */{},
|
9985
10010
|
setAttr: function setAttr() /* attr: string, value: string */{},
|
@@ -10057,6 +10082,10 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10057
10082
|
_this.ctx_ = null;
|
10058
10083
|
_this.selectedIndex_ = -1;
|
10059
10084
|
_this.disabled_ = false;
|
10085
|
+
_this.isFocused_ = false;
|
10086
|
+
_this.setPointerXOffset_ = function (evt) {
|
10087
|
+
return _this.setBottomLineOrigin_(evt);
|
10088
|
+
};
|
10060
10089
|
_this.displayHandler_ = function (evt) {
|
10061
10090
|
evt.preventDefault();
|
10062
10091
|
if (!_this.adapter_.isMenuOpen()) {
|
@@ -10070,14 +10099,19 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10070
10099
|
var detail = _ref.detail;
|
10071
10100
|
var index = detail.index;
|
10072
10101
|
|
10073
|
-
|
10102
|
+
|
10074
10103
|
if (index !== _this.selectedIndex_) {
|
10075
10104
|
_this.setSelectedIndex(index);
|
10076
10105
|
_this.adapter_.notifyChange();
|
10077
10106
|
}
|
10107
|
+
_this.close_();
|
10078
10108
|
};
|
10079
10109
|
_this.cancelHandler_ = function () {
|
10080
10110
|
_this.close_();
|
10111
|
+
|
10112
|
+
if (_this.selectedIndex_ === -1) {
|
10113
|
+
_this.adapter_.removeClassFromLabel(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].LABEL_FLOAT_ABOVE);
|
10114
|
+
}
|
10081
10115
|
};
|
10082
10116
|
return _this;
|
10083
10117
|
}
|
@@ -10085,17 +10119,24 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10085
10119
|
_createClass(MDCSelectFoundation, [{
|
10086
10120
|
key: 'init',
|
10087
10121
|
value: function init() {
|
10122
|
+
var _this2 = this;
|
10123
|
+
|
10088
10124
|
this.ctx_ = this.adapter_.create2dRenderingContext();
|
10089
10125
|
this.adapter_.registerInteractionHandler('click', this.displayHandler_);
|
10090
10126
|
this.adapter_.registerInteractionHandler('keydown', this.displayViaKeyboardHandler_);
|
10091
10127
|
this.adapter_.registerInteractionHandler('keyup', this.displayViaKeyboardHandler_);
|
10092
10128
|
this.adapter_.registerMenuInteractionHandler(__WEBPACK_IMPORTED_MODULE_2__material_menu__["MDCSimpleMenuFoundation"].strings.SELECTED_EVENT, this.selectionHandler_);
|
10093
10129
|
this.adapter_.registerMenuInteractionHandler(__WEBPACK_IMPORTED_MODULE_2__material_menu__["MDCSimpleMenuFoundation"].strings.CANCEL_EVENT, this.cancelHandler_);
|
10130
|
+
['mousedown', 'touchstart'].forEach(function (evtType) {
|
10131
|
+
_this2.adapter_.registerInteractionHandler(evtType, _this2.setPointerXOffset_);
|
10132
|
+
});
|
10094
10133
|
this.resize();
|
10095
10134
|
}
|
10096
10135
|
}, {
|
10097
10136
|
key: 'destroy',
|
10098
10137
|
value: function destroy() {
|
10138
|
+
var _this3 = this;
|
10139
|
+
|
10099
10140
|
// Drop reference to context object to prevent potential leaks
|
10100
10141
|
this.ctx_ = null;
|
10101
10142
|
this.adapter_.deregisterInteractionHandler('click', this.displayHandler_);
|
@@ -10103,6 +10144,9 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10103
10144
|
this.adapter_.deregisterInteractionHandler('keyup', this.displayViaKeyboardHandler_);
|
10104
10145
|
this.adapter_.deregisterMenuInteractionHandler(__WEBPACK_IMPORTED_MODULE_2__material_menu__["MDCSimpleMenuFoundation"].strings.SELECTED_EVENT, this.selectionHandler_);
|
10105
10146
|
this.adapter_.deregisterMenuInteractionHandler(__WEBPACK_IMPORTED_MODULE_2__material_menu__["MDCSimpleMenuFoundation"].strings.CANCEL_EVENT, this.cancelHandler_);
|
10147
|
+
['mousedown', 'touchstart'].forEach(function (evtType) {
|
10148
|
+
_this3.adapter_.deregisterInteractionHandler(evtType, _this3.setPointerXOffset_);
|
10149
|
+
});
|
10106
10150
|
}
|
10107
10151
|
}, {
|
10108
10152
|
key: 'getValue',
|
@@ -10156,6 +10200,7 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10156
10200
|
value: function resize() {
|
10157
10201
|
var font = this.adapter_.getComputedStyleValue('font');
|
10158
10202
|
var letterSpacing = parseFloat(this.adapter_.getComputedStyleValue('letter-spacing'));
|
10203
|
+
|
10159
10204
|
if (font) {
|
10160
10205
|
this.ctx_.font = font;
|
10161
10206
|
} else {
|
@@ -10165,15 +10210,21 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10165
10210
|
}
|
10166
10211
|
|
10167
10212
|
var maxTextLength = 0;
|
10213
|
+
|
10168
10214
|
for (var i = 0, l = this.adapter_.getNumberOfOptions(); i < l; i++) {
|
10215
|
+
var surfacePaddingRight = parseInt(this.adapter_.getComputedStyleValue('padding-right'), 10);
|
10216
|
+
var surfacePaddingLeft = parseInt(this.adapter_.getComputedStyleValue('padding-left'), 10);
|
10217
|
+
var selectBoxAddedPadding = surfacePaddingRight + surfacePaddingLeft;
|
10169
10218
|
var txt = this.adapter_.getTextForOptionAtIndex(i).trim();
|
10170
10219
|
|
10171
10220
|
var _ctx_$measureText = this.ctx_.measureText(txt),
|
10172
10221
|
width = _ctx_$measureText.width;
|
10173
10222
|
|
10174
10223
|
var addedSpace = letterSpacing * txt.length;
|
10175
|
-
|
10224
|
+
|
10225
|
+
maxTextLength = Math.max(maxTextLength, Math.ceil(width + addedSpace + selectBoxAddedPadding));
|
10176
10226
|
}
|
10227
|
+
|
10177
10228
|
this.adapter_.setStyle('width', maxTextLength + 'px');
|
10178
10229
|
}
|
10179
10230
|
}, {
|
@@ -10185,8 +10236,21 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10185
10236
|
var focusIndex = this.selectedIndex_ < 0 ? 0 : this.selectedIndex_;
|
10186
10237
|
|
10187
10238
|
this.setMenuStylesForOpenAtIndex_(focusIndex);
|
10239
|
+
this.adapter_.addClassToLabel(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].LABEL_FLOAT_ABOVE);
|
10240
|
+
this.adapter_.addClassToBottomLine(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].BOTTOM_LINE_ACTIVE);
|
10188
10241
|
this.adapter_.addClass(OPEN);
|
10189
10242
|
this.adapter_.openMenu(focusIndex);
|
10243
|
+
this.isFocused_ = true;
|
10244
|
+
}
|
10245
|
+
}, {
|
10246
|
+
key: 'setBottomLineOrigin_',
|
10247
|
+
value: function setBottomLineOrigin_(evt) {
|
10248
|
+
var targetClientRect = evt.target.getBoundingClientRect();
|
10249
|
+
var evtCoords = { x: evt.clientX, y: evt.clientY };
|
10250
|
+
var normalizedX = evtCoords.x - targetClientRect.left;
|
10251
|
+
var attributeString = 'transform-origin: ' + normalizedX + 'px bottom';
|
10252
|
+
|
10253
|
+
this.adapter_.setBottomLineAttr('style', attributeString);
|
10190
10254
|
}
|
10191
10255
|
}, {
|
10192
10256
|
key: 'setMenuStylesForOpenAtIndex_',
|
@@ -10223,6 +10287,7 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10223
10287
|
var OPEN = MDCSelectFoundation.cssClasses.OPEN;
|
10224
10288
|
|
10225
10289
|
this.adapter_.removeClass(OPEN);
|
10290
|
+
this.adapter_.removeClassFromBottomLine(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].BOTTOM_LINE_ACTIVE);
|
10226
10291
|
this.adapter_.focus();
|
10227
10292
|
this.enableScroll_();
|
10228
10293
|
}
|
@@ -10249,6 +10314,7 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10249
10314
|
|
10250
10315
|
return evt.type === forType && (evt.key === key || evt.keyCode === keyCode);
|
10251
10316
|
});
|
10317
|
+
|
10252
10318
|
if (isOpenerKey) {
|
10253
10319
|
this.displayHandler_(evt);
|
10254
10320
|
}
|
@@ -10270,39 +10336,6 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
10270
10336
|
|
10271
10337
|
/* harmony default export */ __webpack_exports__["a"] = (MDCSelectFoundation);
|
10272
10338
|
|
10273
|
-
/***/ }),
|
10274
|
-
/* 69 */
|
10275
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10276
|
-
|
10277
|
-
"use strict";
|
10278
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
10279
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
10280
|
-
/**
|
10281
|
-
* Copyright 2016 Google Inc. All Rights Reserved.
|
10282
|
-
*
|
10283
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
10284
|
-
* you may not use this file except in compliance with the License.
|
10285
|
-
* You may obtain a copy of the License at
|
10286
|
-
*
|
10287
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10288
|
-
*
|
10289
|
-
* Unless required by applicable law or agreed to in writing, software
|
10290
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
10291
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10292
|
-
* See the License for the specific language governing permissions and
|
10293
|
-
* limitations under the License.
|
10294
|
-
*/
|
10295
|
-
var cssClasses = {
|
10296
|
-
ROOT: 'mdc-select',
|
10297
|
-
OPEN: 'mdc-select--open',
|
10298
|
-
DISABLED: 'mdc-select--disabled',
|
10299
|
-
SCROLL_LOCK: 'mdc-select-scroll-lock'
|
10300
|
-
};
|
10301
|
-
|
10302
|
-
var strings = {
|
10303
|
-
CHANGE_EVENT: 'MDCSelect:change'
|
10304
|
-
};
|
10305
|
-
|
10306
10339
|
/***/ }),
|
10307
10340
|
/* 70 */
|
10308
10341
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -10311,7 +10344,7 @@ var strings = {
|
|
10311
10344
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
10312
10345
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSlider", function() { return MDCSlider; });
|
10313
10346
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
10314
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
10347
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(15);
|
10315
10348
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(71);
|
10316
10349
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSliderFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
10317
10350
|
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; }; }();
|
@@ -10540,7 +10573,7 @@ var MDCSlider = function (_MDCComponent) {
|
|
10540
10573
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10541
10574
|
|
10542
10575
|
"use strict";
|
10543
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__(
|
10576
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants__ = __webpack_require__(15);
|
10544
10577
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_animation__ = __webpack_require__(5);
|
10545
10578
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_base_foundation__ = __webpack_require__(0);
|
10546
10579
|
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; };
|
@@ -11621,10 +11654,10 @@ var numbers = {
|
|
11621
11654
|
|
11622
11655
|
"use strict";
|
11623
11656
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
11624
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tab__ = __webpack_require__(
|
11657
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tab__ = __webpack_require__(16);
|
11625
11658
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTabFoundation", function() { return __WEBPACK_IMPORTED_MODULE_0__tab__["b"]; });
|
11626
11659
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTab", function() { return __WEBPACK_IMPORTED_MODULE_0__tab__["a"]; });
|
11627
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__tab_bar__ = __webpack_require__(
|
11660
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__tab_bar__ = __webpack_require__(18);
|
11628
11661
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTabBarFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__tab_bar__["b"]; });
|
11629
11662
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTabBar", function() { return __WEBPACK_IMPORTED_MODULE_1__tab_bar__["a"]; });
|
11630
11663
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab_bar_scroller__ = __webpack_require__(79);
|
@@ -11656,7 +11689,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
11656
11689
|
|
11657
11690
|
"use strict";
|
11658
11691
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
11659
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
11692
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(17);
|
11660
11693
|
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; };
|
11661
11694
|
|
11662
11695
|
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; }; }();
|
@@ -12094,7 +12127,7 @@ var strings = {
|
|
12094
12127
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTabBarScroller; });
|
12095
12128
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_animation__ = __webpack_require__(5);
|
12096
12129
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_base_component__ = __webpack_require__(2);
|
12097
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab_bar__ = __webpack_require__(
|
12130
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab_bar__ = __webpack_require__(18);
|
12098
12131
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__foundation__ = __webpack_require__(80);
|
12099
12132
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__foundation__["a"]; });
|
12100
12133
|
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; }; }();
|
@@ -12656,13 +12689,18 @@ var strings = {
|
|
12656
12689
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
12657
12690
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextField", function() { return MDCTextField; });
|
12658
12691
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
12659
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(
|
12660
|
-
/* harmony import */ var
|
12661
|
-
/* harmony import */ var
|
12662
|
-
/* harmony import */ var
|
12663
|
-
/* harmony import */ var
|
12664
|
-
/* harmony import */ var
|
12665
|
-
/* harmony
|
12692
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(3);
|
12693
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ripple_util__ = __webpack_require__(6);
|
12694
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(19);
|
12695
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__adapter__ = __webpack_require__(20);
|
12696
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__foundation__ = __webpack_require__(85);
|
12697
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__bottom_line__ = __webpack_require__(86);
|
12698
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__helper_text__ = __webpack_require__(87);
|
12699
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextFieldFoundation", function() { return __WEBPACK_IMPORTED_MODULE_5__foundation__["a"]; });
|
12700
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextFieldBottomLine", function() { return __WEBPACK_IMPORTED_MODULE_6__bottom_line__["a"]; });
|
12701
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextFieldBottomLineFoundation", function() { return __WEBPACK_IMPORTED_MODULE_6__bottom_line__["b"]; });
|
12702
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextFieldHelperText", function() { return __WEBPACK_IMPORTED_MODULE_7__helper_text__["a"]; });
|
12703
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextFieldHelperTextFoundation", function() { return __WEBPACK_IMPORTED_MODULE_7__helper_text__["b"]; });
|
12666
12704
|
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; };
|
12667
12705
|
|
12668
12706
|
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; }; }();
|
@@ -12699,7 +12737,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
12699
12737
|
|
12700
12738
|
|
12701
12739
|
|
12740
|
+
/* eslint-disable no-unused-vars */
|
12741
|
+
|
12702
12742
|
|
12743
|
+
/* eslint-enable no-unused-vars */
|
12703
12744
|
|
12704
12745
|
/**
|
12705
12746
|
* @extends {MDCComponent<!MDCTextFieldFoundation>}
|
@@ -12755,33 +12796,48 @@ var MDCTextField = function (_MDCComponent) {
|
|
12755
12796
|
* creates a new MDCTextFieldBottomLine.
|
12756
12797
|
*/
|
12757
12798
|
value: function initialize() {
|
12758
|
-
var
|
12759
|
-
|
12799
|
+
var _this2 = this;
|
12800
|
+
|
12801
|
+
var rippleFactory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (el, foundation) {
|
12802
|
+
return new __WEBPACK_IMPORTED_MODULE_1__material_ripple__["MDCRipple"](el, foundation);
|
12760
12803
|
};
|
12761
12804
|
var bottomLineFactory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (el) {
|
12762
|
-
return new
|
12805
|
+
return new __WEBPACK_IMPORTED_MODULE_6__bottom_line__["a" /* MDCTextFieldBottomLine */](el);
|
12763
12806
|
};
|
12764
12807
|
|
12765
|
-
this.input_ = this.root_.querySelector(
|
12766
|
-
this.label_ = this.root_.querySelector(
|
12808
|
+
this.input_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].INPUT_SELECTOR);
|
12809
|
+
this.label_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].LABEL_SELECTOR);
|
12767
12810
|
this.ripple = null;
|
12768
|
-
if (this.root_.classList.contains(
|
12769
|
-
|
12811
|
+
if (this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_3__constants__["a" /* cssClasses */].BOX)) {
|
12812
|
+
var MATCHES = Object(__WEBPACK_IMPORTED_MODULE_2__material_ripple_util__["getMatchesProperty"])(HTMLElement.prototype);
|
12813
|
+
var adapter = _extends(__WEBPACK_IMPORTED_MODULE_1__material_ripple__["MDCRipple"].createAdapter(this), {
|
12814
|
+
isSurfaceActive: function isSurfaceActive() {
|
12815
|
+
return _this2.input_[MATCHES](':active');
|
12816
|
+
},
|
12817
|
+
registerInteractionHandler: function registerInteractionHandler(type, handler) {
|
12818
|
+
return _this2.input_.addEventListener(type, handler);
|
12819
|
+
},
|
12820
|
+
deregisterInteractionHandler: function deregisterInteractionHandler(type, handler) {
|
12821
|
+
return _this2.input_.removeEventListener(type, handler);
|
12822
|
+
}
|
12823
|
+
});
|
12824
|
+
var foundation = new __WEBPACK_IMPORTED_MODULE_1__material_ripple__["MDCRippleFoundation"](adapter);
|
12825
|
+
this.ripple = rippleFactory(this.root_, foundation);
|
12770
12826
|
};
|
12771
|
-
if (!this.root_.classList.contains(
|
12772
|
-
var bottomLineElement = this.root_.querySelector(
|
12827
|
+
if (!this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_3__constants__["a" /* cssClasses */].TEXTAREA)) {
|
12828
|
+
var bottomLineElement = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].BOTTOM_LINE_SELECTOR);
|
12773
12829
|
if (bottomLineElement) {
|
12774
12830
|
this.bottomLine_ = bottomLineFactory(bottomLineElement);
|
12775
12831
|
}
|
12776
12832
|
};
|
12777
|
-
if (this.input_.hasAttribute(
|
12778
|
-
var helperTextElement = document.getElementById(this.input_.getAttribute(
|
12833
|
+
if (this.input_.hasAttribute(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].ARIA_CONTROLS)) {
|
12834
|
+
var helperTextElement = document.getElementById(this.input_.getAttribute(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].ARIA_CONTROLS));
|
12779
12835
|
if (helperTextElement) {
|
12780
|
-
this.helperText_ = new
|
12836
|
+
this.helperText_ = new __WEBPACK_IMPORTED_MODULE_7__helper_text__["a" /* MDCTextFieldHelperText */](helperTextElement);
|
12781
12837
|
}
|
12782
12838
|
}
|
12783
|
-
if (!this.root_.classList.contains(
|
12784
|
-
this.icon_ = this.root_.querySelector(
|
12839
|
+
if (!this.root_.classList.contains(__WEBPACK_IMPORTED_MODULE_3__constants__["a" /* cssClasses */].TEXT_FIELD_ICON)) {
|
12840
|
+
this.icon_ = this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_3__constants__["b" /* strings */].ICON_SELECTOR);
|
12785
12841
|
};
|
12786
12842
|
}
|
12787
12843
|
}, {
|
@@ -12822,23 +12878,24 @@ var MDCTextField = function (_MDCComponent) {
|
|
12822
12878
|
* @return {!MDCTextFieldFoundation}
|
12823
12879
|
*/
|
12824
12880
|
value: function getDefaultFoundation() {
|
12825
|
-
var
|
12881
|
+
var _this3 = this;
|
12826
12882
|
|
12827
|
-
return new
|
12883
|
+
return new __WEBPACK_IMPORTED_MODULE_5__foundation__["a" /* default */](
|
12884
|
+
/** @type {!MDCTextFieldAdapter} */_extends({
|
12828
12885
|
addClass: function addClass(className) {
|
12829
|
-
return
|
12886
|
+
return _this3.root_.classList.add(className);
|
12830
12887
|
},
|
12831
12888
|
removeClass: function removeClass(className) {
|
12832
|
-
return
|
12889
|
+
return _this3.root_.classList.remove(className);
|
12833
12890
|
},
|
12834
12891
|
addClassToLabel: function addClassToLabel(className) {
|
12835
|
-
var label =
|
12892
|
+
var label = _this3.label_;
|
12836
12893
|
if (label) {
|
12837
12894
|
label.classList.add(className);
|
12838
12895
|
}
|
12839
12896
|
},
|
12840
12897
|
removeClassFromLabel: function removeClassFromLabel(className) {
|
12841
|
-
var label =
|
12898
|
+
var label = _this3.label_;
|
12842
12899
|
if (label) {
|
12843
12900
|
label.classList.remove(className);
|
12844
12901
|
}
|
@@ -12847,37 +12904,25 @@ var MDCTextField = function (_MDCComponent) {
|
|
12847
12904
|
return target.classList.contains(className);
|
12848
12905
|
},
|
12849
12906
|
registerTextFieldInteractionHandler: function registerTextFieldInteractionHandler(evtType, handler) {
|
12850
|
-
return
|
12907
|
+
return _this3.root_.addEventListener(evtType, handler);
|
12851
12908
|
},
|
12852
12909
|
deregisterTextFieldInteractionHandler: function deregisterTextFieldInteractionHandler(evtType, handler) {
|
12853
|
-
return
|
12910
|
+
return _this3.root_.removeEventListener(evtType, handler);
|
12854
12911
|
},
|
12855
12912
|
notifyIconAction: function notifyIconAction() {
|
12856
|
-
return
|
12913
|
+
return _this3.emit(__WEBPACK_IMPORTED_MODULE_5__foundation__["a" /* default */].strings.ICON_EVENT, {});
|
12857
12914
|
},
|
12858
12915
|
registerBottomLineEventHandler: function registerBottomLineEventHandler(evtType, handler) {
|
12859
|
-
if (
|
12860
|
-
|
12916
|
+
if (_this3.bottomLine_) {
|
12917
|
+
_this3.bottomLine_.listen(evtType, handler);
|
12861
12918
|
}
|
12862
12919
|
},
|
12863
12920
|
deregisterBottomLineEventHandler: function deregisterBottomLineEventHandler(evtType, handler) {
|
12864
|
-
if (
|
12865
|
-
|
12866
|
-
}
|
12867
|
-
},
|
12868
|
-
getBottomLineFoundation: function getBottomLineFoundation() {
|
12869
|
-
if (_this2.bottomLine_) {
|
12870
|
-
return _this2.bottomLine_.foundation;
|
12871
|
-
}
|
12872
|
-
return undefined;
|
12873
|
-
},
|
12874
|
-
getHelperTextFoundation: function getHelperTextFoundation() {
|
12875
|
-
if (_this2.helperText_) {
|
12876
|
-
return _this2.helperText_.foundation;
|
12921
|
+
if (_this3.bottomLine_) {
|
12922
|
+
_this3.bottomLine_.unlisten(evtType, handler);
|
12877
12923
|
}
|
12878
|
-
return undefined;
|
12879
12924
|
}
|
12880
|
-
}, this.getInputAdapterMethods_(), this.getIconAdapterMethods_()));
|
12925
|
+
}, this.getInputAdapterMethods_(), this.getIconAdapterMethods_()), this.getFoundationMap_());
|
12881
12926
|
}
|
12882
12927
|
|
12883
12928
|
/**
|
@@ -12889,12 +12934,12 @@ var MDCTextField = function (_MDCComponent) {
|
|
12889
12934
|
}, {
|
12890
12935
|
key: 'getIconAdapterMethods_',
|
12891
12936
|
value: function getIconAdapterMethods_() {
|
12892
|
-
var
|
12937
|
+
var _this4 = this;
|
12893
12938
|
|
12894
12939
|
return {
|
12895
12940
|
setIconAttr: function setIconAttr(name, value) {
|
12896
|
-
if (
|
12897
|
-
|
12941
|
+
if (_this4.icon_) {
|
12942
|
+
_this4.icon_.setAttribute(name, value);
|
12898
12943
|
}
|
12899
12944
|
}
|
12900
12945
|
};
|
@@ -12911,20 +12956,34 @@ var MDCTextField = function (_MDCComponent) {
|
|
12911
12956
|
}, {
|
12912
12957
|
key: 'getInputAdapterMethods_',
|
12913
12958
|
value: function getInputAdapterMethods_() {
|
12914
|
-
var
|
12959
|
+
var _this5 = this;
|
12915
12960
|
|
12916
12961
|
return {
|
12917
12962
|
registerInputInteractionHandler: function registerInputInteractionHandler(evtType, handler) {
|
12918
|
-
return
|
12963
|
+
return _this5.input_.addEventListener(evtType, handler);
|
12919
12964
|
},
|
12920
12965
|
deregisterInputInteractionHandler: function deregisterInputInteractionHandler(evtType, handler) {
|
12921
|
-
return
|
12966
|
+
return _this5.input_.removeEventListener(evtType, handler);
|
12922
12967
|
},
|
12923
12968
|
getNativeInput: function getNativeInput() {
|
12924
|
-
return
|
12969
|
+
return _this5.input_;
|
12925
12970
|
}
|
12926
12971
|
};
|
12927
12972
|
}
|
12973
|
+
|
12974
|
+
/**
|
12975
|
+
* Returns a map of all subcomponents to subfoundations.
|
12976
|
+
* @return {!FoundationMapType}
|
12977
|
+
*/
|
12978
|
+
|
12979
|
+
}, {
|
12980
|
+
key: 'getFoundationMap_',
|
12981
|
+
value: function getFoundationMap_() {
|
12982
|
+
return {
|
12983
|
+
bottomLine: this.bottomLine_ ? this.bottomLine_.foundation : undefined,
|
12984
|
+
helperText: this.helperText_ ? this.helperText_.foundation : undefined
|
12985
|
+
};
|
12986
|
+
}
|
12928
12987
|
}, {
|
12929
12988
|
key: 'disabled',
|
12930
12989
|
get: function get() {
|
@@ -13051,9 +13110,10 @@ var cssClasses = {
|
|
13051
13110
|
|
13052
13111
|
"use strict";
|
13053
13112
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_foundation__ = __webpack_require__(0);
|
13054
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
13113
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(20);
|
13055
13114
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__bottom_line_foundation__ = __webpack_require__(11);
|
13056
|
-
/* harmony import */ var
|
13115
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__helper_text_foundation__ = __webpack_require__(12);
|
13116
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__constants__ = __webpack_require__(19);
|
13057
13117
|
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; };
|
13058
13118
|
|
13059
13119
|
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; }; }();
|
@@ -13084,6 +13144,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
13084
13144
|
|
13085
13145
|
|
13086
13146
|
|
13147
|
+
// eslint-disable-next-line no-unused-vars
|
13148
|
+
|
13087
13149
|
|
13088
13150
|
|
13089
13151
|
/**
|
@@ -13099,7 +13161,7 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13099
13161
|
|
13100
13162
|
/** @return enum {string} */
|
13101
13163
|
get: function get() {
|
13102
|
-
return
|
13164
|
+
return __WEBPACK_IMPORTED_MODULE_4__constants__["a" /* cssClasses */];
|
13103
13165
|
}
|
13104
13166
|
|
13105
13167
|
/** @return enum {string} */
|
@@ -13107,7 +13169,7 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13107
13169
|
}, {
|
13108
13170
|
key: 'strings',
|
13109
13171
|
get: function get() {
|
13110
|
-
return
|
13172
|
+
return __WEBPACK_IMPORTED_MODULE_4__constants__["b" /* strings */];
|
13111
13173
|
}
|
13112
13174
|
|
13113
13175
|
/**
|
@@ -13133,27 +13195,32 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13133
13195
|
deregisterInputInteractionHandler: function deregisterInputInteractionHandler() {},
|
13134
13196
|
registerBottomLineEventHandler: function registerBottomLineEventHandler() {},
|
13135
13197
|
deregisterBottomLineEventHandler: function deregisterBottomLineEventHandler() {},
|
13136
|
-
getNativeInput: function getNativeInput() {}
|
13137
|
-
getBottomLineFoundation: function getBottomLineFoundation() {},
|
13138
|
-
getHelperTextFoundation: function getHelperTextFoundation() {}
|
13198
|
+
getNativeInput: function getNativeInput() {}
|
13139
13199
|
}
|
13140
13200
|
);
|
13141
13201
|
}
|
13142
13202
|
|
13143
13203
|
/**
|
13144
13204
|
* @param {!MDCTextFieldAdapter=} adapter
|
13205
|
+
* @param {!FoundationMapType=} foundationMap Map from subcomponent names to their subfoundations.
|
13145
13206
|
*/
|
13146
13207
|
|
13147
13208
|
}]);
|
13148
13209
|
|
13149
13210
|
function MDCTextFieldFoundation() {
|
13150
13211
|
var adapter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /** @type {!MDCTextFieldAdapter} */{};
|
13212
|
+
var foundationMap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : /** @type {!FoundationMapType} */{};
|
13151
13213
|
|
13152
13214
|
_classCallCheck(this, MDCTextFieldFoundation);
|
13153
13215
|
|
13154
|
-
/** @
|
13216
|
+
/** @type {!MDCTextFieldBottomLineFoundation|undefined} */
|
13155
13217
|
var _this = _possibleConstructorReturn(this, (MDCTextFieldFoundation.__proto__ || Object.getPrototypeOf(MDCTextFieldFoundation)).call(this, _extends(MDCTextFieldFoundation.defaultAdapter, adapter)));
|
13156
13218
|
|
13219
|
+
_this.bottomLine_ = foundationMap.bottomLine;
|
13220
|
+
/** @type {!MDCTextFieldHelperTextFoundation|undefined} */
|
13221
|
+
_this.helperText_ = foundationMap.helperText;
|
13222
|
+
|
13223
|
+
/** @private {boolean} */
|
13157
13224
|
_this.isFocused_ = false;
|
13158
13225
|
/** @private {boolean} */
|
13159
13226
|
_this.receivedUserInput_ = false;
|
@@ -13265,15 +13332,13 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13265
13332
|
LABEL_SHAKE = _MDCTextFieldFoundati.LABEL_SHAKE;
|
13266
13333
|
|
13267
13334
|
this.adapter_.addClass(FOCUSED);
|
13268
|
-
|
13269
|
-
|
13270
|
-
bottomLine.activate();
|
13335
|
+
if (this.bottomLine_) {
|
13336
|
+
this.bottomLine_.activate();
|
13271
13337
|
}
|
13272
13338
|
this.adapter_.addClassToLabel(LABEL_FLOAT_ABOVE);
|
13273
13339
|
this.adapter_.removeClassFromLabel(LABEL_SHAKE);
|
13274
|
-
|
13275
|
-
|
13276
|
-
helperText.showToScreenReader();
|
13340
|
+
if (this.helperText_) {
|
13341
|
+
this.helperText_.showToScreenReader();
|
13277
13342
|
}
|
13278
13343
|
this.isFocused_ = true;
|
13279
13344
|
}
|
@@ -13287,9 +13352,8 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13287
13352
|
}, {
|
13288
13353
|
key: 'setBottomLineTransformOrigin',
|
13289
13354
|
value: function setBottomLineTransformOrigin(evt) {
|
13290
|
-
|
13291
|
-
|
13292
|
-
bottomLine.setTransformOrigin(evt);
|
13355
|
+
if (this.bottomLine_) {
|
13356
|
+
this.bottomLine_.setTransformOrigin(evt);
|
13293
13357
|
}
|
13294
13358
|
}
|
13295
13359
|
|
@@ -13314,12 +13378,11 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13314
13378
|
}, {
|
13315
13379
|
key: 'handleBottomLineAnimationEnd',
|
13316
13380
|
value: function handleBottomLineAnimationEnd() {
|
13317
|
-
var bottomLine = this.adapter_.getBottomLineFoundation();
|
13318
13381
|
// We need to wait for the bottom line to be entirely transparent
|
13319
13382
|
// before removing the class. If we do not, we see the line start to
|
13320
13383
|
// scale down before disappearing
|
13321
|
-
if (!this.isFocused_ &&
|
13322
|
-
|
13384
|
+
if (!this.isFocused_ && this.bottomLine_) {
|
13385
|
+
this.bottomLine_.deactivate();
|
13323
13386
|
}
|
13324
13387
|
}
|
13325
13388
|
|
@@ -13370,9 +13433,8 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13370
13433
|
this.adapter_.addClassToLabel(LABEL_SHAKE);
|
13371
13434
|
this.adapter_.addClass(INVALID);
|
13372
13435
|
}
|
13373
|
-
|
13374
|
-
|
13375
|
-
helperText.setValidity(isValid);
|
13436
|
+
if (this.helperText_) {
|
13437
|
+
this.helperText_.setValidity(isValid);
|
13376
13438
|
}
|
13377
13439
|
}
|
13378
13440
|
|
@@ -13427,9 +13489,8 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13427
13489
|
}, {
|
13428
13490
|
key: 'setHelperTextContent',
|
13429
13491
|
value: function setHelperTextContent(content) {
|
13430
|
-
|
13431
|
-
|
13432
|
-
helperText.setContent(content);
|
13492
|
+
if (this.helperText_) {
|
13493
|
+
this.helperText_.setContent(content);
|
13433
13494
|
}
|
13434
13495
|
}
|
13435
13496
|
|
@@ -13477,9 +13538,9 @@ var MDCTextFieldFoundation = function (_MDCFoundation) {
|
|
13477
13538
|
"use strict";
|
13478
13539
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTextFieldBottomLine; });
|
13479
13540
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
13480
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
13541
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(21);
|
13481
13542
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(11);
|
13482
|
-
/*
|
13543
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
13483
13544
|
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; };
|
13484
13545
|
|
13485
13546
|
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; }; }();
|
@@ -13562,7 +13623,7 @@ var MDCTextFieldBottomLine = function (_MDCComponent) {
|
|
13562
13623
|
|
13563
13624
|
|
13564
13625
|
/**
|
13565
|
-
* @return {MDCTextFieldBottomLineFoundation}
|
13626
|
+
* @return {!MDCTextFieldBottomLineFoundation}
|
13566
13627
|
*/
|
13567
13628
|
get: function get() {
|
13568
13629
|
return this.foundation_;
|
@@ -13591,9 +13652,9 @@ var MDCTextFieldBottomLine = function (_MDCComponent) {
|
|
13591
13652
|
"use strict";
|
13592
13653
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTextFieldHelperText; });
|
13593
13654
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base_component__ = __webpack_require__(2);
|
13594
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(
|
13595
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
13596
|
-
/*
|
13655
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adapter__ = __webpack_require__(22);
|
13656
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(12);
|
13657
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
13597
13658
|
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; };
|
13598
13659
|
|
13599
13660
|
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; }; }();
|
@@ -13676,7 +13737,7 @@ var MDCTextFieldHelperText = function (_MDCComponent) {
|
|
13676
13737
|
|
13677
13738
|
|
13678
13739
|
/**
|
13679
|
-
* @return {MDCTextFieldHelperTextFoundation}
|
13740
|
+
* @return {!MDCTextFieldHelperTextFoundation}
|
13680
13741
|
*/
|
13681
13742
|
get: function get() {
|
13682
13743
|
return this.foundation_;
|