material_components_web-sass 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +2 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +917 -123
- data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +177 -0
- data/vendor/assets/stylesheets/@material/grid-list/mdc-grid-list.scss +194 -0
- data/vendor/assets/stylesheets/_material-components-web.scss +2 -0
- 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: 502052d54dff0690a594b05c4f1040a90ea239ff
|
4
|
+
data.tar.gz: ae0edb7c6bc095701f004093c18eacf57d526fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c445e3a721376c4cb3305a1ff6b4851e1e04a4f038cc22cfd9cab91083580f3368c45a11cef5d7cd3a270fc557e58820d004c4bc97f7afa920c8a1b9e4361fe
|
7
|
+
data.tar.gz: 215b21fe42ba74c2fb3c283e8b16579f33ac98477a804366875c0f5a6585e7b5c90a7c9fb1beccc7ccbe7e64ff4232d938a481f48fac5da8e9d29f879e22cbe3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -46,10 +46,12 @@ Individual Sass components can be included like this:
|
|
46
46
|
@import "@material/button/mdc-button";
|
47
47
|
@import "@material/card/mdc-card";
|
48
48
|
@import "@material/checkbox/mdc-checkbox";
|
49
|
+
@import "@material/dialog/mdc-dialog";
|
49
50
|
@import "@material/drawer/mdc-drawer";
|
50
51
|
@import "@material/elevation/mdc-elevation";
|
51
52
|
@import "@material/fab/mdc-fab";
|
52
53
|
@import "@material/form-field/mdc-form-field";
|
54
|
+
@import "@material/grid-list/mdc-grid-list";
|
53
55
|
@import "@material/icon-toggle/mdc-icon-toggle";
|
54
56
|
@import "@material/layout-grid/mdc-layout-grid";
|
55
57
|
@import "@material/list/mdc-list";
|
@@ -78,7 +78,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
78
78
|
/******/ __webpack_require__.p = "/assets/";
|
79
79
|
|
80
80
|
/******/ // Load entry module and return exports
|
81
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
81
|
+
/******/ return __webpack_require__(__webpack_require__.s = 43);
|
82
82
|
/******/ })
|
83
83
|
/************************************************************************/
|
84
84
|
/******/ ([
|
@@ -89,7 +89,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
89
89
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
90
90
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation__ = __webpack_require__(5);
|
91
91
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFoundation", function() { return __WEBPACK_IMPORTED_MODULE_0__foundation__["a"]; });
|
92
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__component__ = __webpack_require__(
|
92
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__component__ = __webpack_require__(18);
|
93
93
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCComponent", function() { return __WEBPACK_IMPORTED_MODULE_1__component__["a"]; });
|
94
94
|
/**
|
95
95
|
* Copyright 2016 Google Inc.
|
@@ -117,7 +117,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
117
117
|
"use strict";
|
118
118
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
119
119
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
120
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
120
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(38);
|
121
121
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(3);
|
122
122
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRippleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
123
123
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRipple", function() { return MDCRipple; });
|
@@ -472,7 +472,7 @@ function getNormalizedEventCoords(ev, pageOffset, clientRect) {
|
|
472
472
|
|
473
473
|
"use strict";
|
474
474
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
475
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__simple__ = __webpack_require__(
|
475
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__simple__ = __webpack_require__(35);
|
476
476
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenu", function() { return __WEBPACK_IMPORTED_MODULE_0__simple__["a"]; });
|
477
477
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSimpleMenuFoundation", function() { return __WEBPACK_IMPORTED_MODULE_0__simple__["b"]; });
|
478
478
|
/**
|
@@ -800,7 +800,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
800
800
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(1);
|
801
801
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ripple_util__ = __webpack_require__(3);
|
802
802
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_animation__ = __webpack_require__(2);
|
803
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__foundation__ = __webpack_require__(
|
803
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__foundation__ = __webpack_require__(20);
|
804
804
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCCheckboxFoundation", function() { return __WEBPACK_IMPORTED_MODULE_4__foundation__["a"]; });
|
805
805
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCCheckbox", function() { return MDCCheckbox; });
|
806
806
|
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; };
|
@@ -991,7 +991,210 @@ var MDCCheckbox = function (_MDCComponent) {
|
|
991
991
|
|
992
992
|
"use strict";
|
993
993
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
994
|
-
/* harmony import */ var
|
994
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
995
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(1);
|
996
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(22);
|
997
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(23);
|
998
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCDialogFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
999
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return __WEBPACK_IMPORTED_MODULE_3__util__; });
|
1000
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCDialog", function() { return MDCDialog; });
|
1001
|
+
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; }; }();
|
1002
|
+
|
1003
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1004
|
+
|
1005
|
+
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; }
|
1006
|
+
|
1007
|
+
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; }
|
1008
|
+
|
1009
|
+
/**
|
1010
|
+
* Copyright 2017 Google Inc. All Rights Reserved.
|
1011
|
+
*
|
1012
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1013
|
+
* you may not use this file except in compliance with the License.
|
1014
|
+
* You may obtain a copy of the License at
|
1015
|
+
*
|
1016
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1017
|
+
*
|
1018
|
+
* Unless required by applicable law or agreed to in writing, software
|
1019
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1020
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1021
|
+
* See the License for the specific language governing permissions and
|
1022
|
+
* limitations under the License.
|
1023
|
+
*/
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
1034
|
+
var MDCDialog = function (_MDCComponent) {
|
1035
|
+
_inherits(MDCDialog, _MDCComponent);
|
1036
|
+
|
1037
|
+
function MDCDialog() {
|
1038
|
+
_classCallCheck(this, MDCDialog);
|
1039
|
+
|
1040
|
+
return _possibleConstructorReturn(this, (MDCDialog.__proto__ || Object.getPrototypeOf(MDCDialog)).apply(this, arguments));
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
_createClass(MDCDialog, [{
|
1044
|
+
key: 'initialize',
|
1045
|
+
value: function initialize() {
|
1046
|
+
this.lastFocusedTarget = null;
|
1047
|
+
this.footerBtnRipples_ = [];
|
1048
|
+
|
1049
|
+
var footerBtns = this.root_.querySelectorAll('.mdc-dialog__footer__button');
|
1050
|
+
for (var i = 0, footerBtn; footerBtn = footerBtns[i]; i++) {
|
1051
|
+
this.footerBtnRipples_.push(new __WEBPACK_IMPORTED_MODULE_1__material_ripple__["MDCRipple"](footerBtn));
|
1052
|
+
}
|
1053
|
+
}
|
1054
|
+
}, {
|
1055
|
+
key: 'destroy',
|
1056
|
+
value: function destroy() {
|
1057
|
+
this.footerBtnRipples_.forEach(function (ripple) {
|
1058
|
+
return ripple.destroy();
|
1059
|
+
});
|
1060
|
+
}
|
1061
|
+
}, {
|
1062
|
+
key: 'show',
|
1063
|
+
value: function show() {
|
1064
|
+
this.foundation_.open();
|
1065
|
+
}
|
1066
|
+
}, {
|
1067
|
+
key: 'close',
|
1068
|
+
value: function close() {
|
1069
|
+
this.foundation_.close();
|
1070
|
+
}
|
1071
|
+
}, {
|
1072
|
+
key: 'getDefaultFoundation',
|
1073
|
+
value: function getDefaultFoundation() {
|
1074
|
+
var _this2 = this;
|
1075
|
+
|
1076
|
+
var FOCUSABLE_ELEMENTS = __WEBPACK_IMPORTED_MODULE_2__foundation__["a" /* default */].strings.FOCUSABLE_ELEMENTS;
|
1077
|
+
|
1078
|
+
|
1079
|
+
return new __WEBPACK_IMPORTED_MODULE_2__foundation__["a" /* default */]({
|
1080
|
+
hasClass: function hasClass(className) {
|
1081
|
+
return _this2.root_.classList.contains(className);
|
1082
|
+
},
|
1083
|
+
addClass: function addClass(className) {
|
1084
|
+
return _this2.root_.classList.add(className);
|
1085
|
+
},
|
1086
|
+
removeClass: function removeClass(className) {
|
1087
|
+
return _this2.root_.classList.remove(className);
|
1088
|
+
},
|
1089
|
+
setAttr: function setAttr(attr, val) {
|
1090
|
+
return _this2.root_.setAttribute(attr, val);
|
1091
|
+
},
|
1092
|
+
addBodyClass: function addBodyClass(className) {
|
1093
|
+
return document.body.classList.add(className);
|
1094
|
+
},
|
1095
|
+
removeBodyClass: function removeBodyClass(className) {
|
1096
|
+
return document.body.classList.remove(className);
|
1097
|
+
},
|
1098
|
+
eventTargetHasClass: function eventTargetHasClass(target, className) {
|
1099
|
+
return target.classList.contains(className);
|
1100
|
+
},
|
1101
|
+
registerInteractionHandler: function registerInteractionHandler(evt, handler) {
|
1102
|
+
return _this2.root_.addEventListener(evt, handler, __WEBPACK_IMPORTED_MODULE_3__util__["applyPassive"]());
|
1103
|
+
},
|
1104
|
+
deregisterInteractionHandler: function deregisterInteractionHandler(evt, handler) {
|
1105
|
+
return _this2.root_.removeEventListener(evt, handler, __WEBPACK_IMPORTED_MODULE_3__util__["applyPassive"]());
|
1106
|
+
},
|
1107
|
+
registerSurfaceInteractionHandler: function registerSurfaceInteractionHandler(evt, handler) {
|
1108
|
+
return _this2.dialogSurface_.addEventListener(evt, handler);
|
1109
|
+
},
|
1110
|
+
deregisterSurfaceInteractionHandler: function deregisterSurfaceInteractionHandler(evt, handler) {
|
1111
|
+
return _this2.dialogSurface_.removeEventListener(evt, handler);
|
1112
|
+
},
|
1113
|
+
registerDocumentKeydownHandler: function registerDocumentKeydownHandler(handler) {
|
1114
|
+
return document.addEventListener('keydown', handler);
|
1115
|
+
},
|
1116
|
+
deregisterDocumentKeydownHandler: function deregisterDocumentKeydownHandler(handler) {
|
1117
|
+
return document.removeEventListener('keydown', handler);
|
1118
|
+
},
|
1119
|
+
registerFocusTrappingHandler: function registerFocusTrappingHandler(handler) {
|
1120
|
+
return document.addEventListener('focus', handler, true);
|
1121
|
+
},
|
1122
|
+
deregisterFocusTrappingHandler: function deregisterFocusTrappingHandler(handler) {
|
1123
|
+
return document.removeEventListener('focus', handler, true);
|
1124
|
+
},
|
1125
|
+
numFocusableTargets: function numFocusableTargets() {
|
1126
|
+
return _this2.dialogSurface_.querySelectorAll(FOCUSABLE_ELEMENTS).length;
|
1127
|
+
},
|
1128
|
+
setDialogFocusFirstTarget: function setDialogFocusFirstTarget() {
|
1129
|
+
return _this2.dialogSurface_.querySelectorAll(FOCUSABLE_ELEMENTS)[0].focus();
|
1130
|
+
},
|
1131
|
+
setInitialFocus: function setInitialFocus() {
|
1132
|
+
return _this2.acceptButton_.focus();
|
1133
|
+
},
|
1134
|
+
getFocusableElements: function getFocusableElements() {
|
1135
|
+
return _this2.dialogSurface_.querySelectorAll(FOCUSABLE_ELEMENTS);
|
1136
|
+
},
|
1137
|
+
saveElementTabState: function saveElementTabState(el) {
|
1138
|
+
return __WEBPACK_IMPORTED_MODULE_3__util__["saveElementTabState"](el);
|
1139
|
+
},
|
1140
|
+
restoreElementTabState: function restoreElementTabState(el) {
|
1141
|
+
return __WEBPACK_IMPORTED_MODULE_3__util__["restoreElementTabState"](el);
|
1142
|
+
},
|
1143
|
+
makeElementUntabbable: function makeElementUntabbable(el) {
|
1144
|
+
return el.setAttribute('tabindex', -1);
|
1145
|
+
},
|
1146
|
+
setBodyAttr: function setBodyAttr(attr, val) {
|
1147
|
+
return document.body.setAttribute(attr, val);
|
1148
|
+
},
|
1149
|
+
rmBodyAttr: function rmBodyAttr(attr) {
|
1150
|
+
return document.body.removeAttribute(attr);
|
1151
|
+
},
|
1152
|
+
getFocusedTarget: function getFocusedTarget() {
|
1153
|
+
return document.activeElement;
|
1154
|
+
},
|
1155
|
+
setFocusedTarget: function setFocusedTarget(target) {
|
1156
|
+
return target.focus();
|
1157
|
+
},
|
1158
|
+
notifyAccept: function notifyAccept() {
|
1159
|
+
return _this2.emit('MDCDialog:accept');
|
1160
|
+
},
|
1161
|
+
notifyCancel: function notifyCancel() {
|
1162
|
+
return _this2.emit('MDCDialog:cancel');
|
1163
|
+
}
|
1164
|
+
});
|
1165
|
+
}
|
1166
|
+
}, {
|
1167
|
+
key: 'open',
|
1168
|
+
get: function get() {
|
1169
|
+
return this.foundation_.isOpen();
|
1170
|
+
}
|
1171
|
+
}, {
|
1172
|
+
key: 'acceptButton_',
|
1173
|
+
get: function get() {
|
1174
|
+
return this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_2__foundation__["a" /* default */].strings.ACCEPT_SELECTOR);
|
1175
|
+
}
|
1176
|
+
}, {
|
1177
|
+
key: 'dialogSurface_',
|
1178
|
+
get: function get() {
|
1179
|
+
return this.root_.querySelector(__WEBPACK_IMPORTED_MODULE_2__foundation__["a" /* default */].strings.DIALOG_SURFACE_SELECTOR);
|
1180
|
+
}
|
1181
|
+
}], [{
|
1182
|
+
key: 'attachTo',
|
1183
|
+
value: function attachTo(root) {
|
1184
|
+
return new MDCDialog(root);
|
1185
|
+
}
|
1186
|
+
}]);
|
1187
|
+
|
1188
|
+
return MDCDialog;
|
1189
|
+
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1190
|
+
|
1191
|
+
/***/ }),
|
1192
|
+
/* 10 */
|
1193
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1194
|
+
|
1195
|
+
"use strict";
|
1196
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1197
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__temporary__ = __webpack_require__(26);
|
995
1198
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawer", function() { return __WEBPACK_IMPORTED_MODULE_0__temporary__["a"]; });
|
996
1199
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTemporaryDrawerFoundation", function() { return __WEBPACK_IMPORTED_MODULE_0__temporary__["b"]; });
|
997
1200
|
/**
|
@@ -1013,13 +1216,13 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1013
1216
|
|
1014
1217
|
|
1015
1218
|
/***/ }),
|
1016
|
-
/*
|
1219
|
+
/* 11 */
|
1017
1220
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1018
1221
|
|
1019
1222
|
"use strict";
|
1020
1223
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1021
1224
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1022
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
1225
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(29);
|
1023
1226
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFormFieldFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
1024
1227
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCFormField", function() { return MDCFormField; });
|
1025
1228
|
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; }; }();
|
@@ -1108,14 +1311,96 @@ var MDCFormField = function (_MDCComponent) {
|
|
1108
1311
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1109
1312
|
|
1110
1313
|
/***/ }),
|
1111
|
-
/*
|
1314
|
+
/* 12 */
|
1315
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1316
|
+
|
1317
|
+
"use strict";
|
1318
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1319
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1320
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(31);
|
1321
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCGridListFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
1322
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCGridList", function() { return MDCGridList; });
|
1323
|
+
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; }; }();
|
1324
|
+
|
1325
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1326
|
+
|
1327
|
+
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; }
|
1328
|
+
|
1329
|
+
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; }
|
1330
|
+
|
1331
|
+
/**
|
1332
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
1333
|
+
*
|
1334
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
1335
|
+
* you may not use this file except in compliance with the License.
|
1336
|
+
* You may obtain a copy of the License at
|
1337
|
+
*
|
1338
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
1339
|
+
*
|
1340
|
+
* Unless required by applicable law or agreed to in writing, software
|
1341
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
1342
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
1343
|
+
* See the License for the specific language governing permissions and
|
1344
|
+
* limitations under the License.
|
1345
|
+
*/
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
var MDCGridList = function (_MDCComponent) {
|
1354
|
+
_inherits(MDCGridList, _MDCComponent);
|
1355
|
+
|
1356
|
+
function MDCGridList() {
|
1357
|
+
_classCallCheck(this, MDCGridList);
|
1358
|
+
|
1359
|
+
return _possibleConstructorReturn(this, (MDCGridList.__proto__ || Object.getPrototypeOf(MDCGridList)).apply(this, arguments));
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
_createClass(MDCGridList, [{
|
1363
|
+
key: 'getDefaultFoundation',
|
1364
|
+
value: function getDefaultFoundation() {
|
1365
|
+
var _this2 = this;
|
1366
|
+
|
1367
|
+
return new __WEBPACK_IMPORTED_MODULE_1__foundation__["a" /* default */]({
|
1368
|
+
getOffsetWidth: function getOffsetWidth() {
|
1369
|
+
return _this2.root_.offsetWidth;
|
1370
|
+
},
|
1371
|
+
getOffsetWidthForTileAtIndex: function getOffsetWidthForTileAtIndex(index) {
|
1372
|
+
return _this2.root_.querySelectorAll(__WEBPACK_IMPORTED_MODULE_1__foundation__["a" /* default */].strings.TILE_SELECTOR)[index].offsetWidth;
|
1373
|
+
},
|
1374
|
+
setStyleForTilesElement: function setStyleForTilesElement(property, value) {
|
1375
|
+
_this2.root_.querySelector(__WEBPACK_IMPORTED_MODULE_1__foundation__["a" /* default */].strings.TILES_SELECTOR).style[property] = value;
|
1376
|
+
},
|
1377
|
+
registerResizeHandler: function registerResizeHandler(handler) {
|
1378
|
+
return window.addEventListener('resize', handler);
|
1379
|
+
},
|
1380
|
+
deregisterResizeHandler: function deregisterResizeHandler(handler) {
|
1381
|
+
return window.removeEventListener('resize', handler);
|
1382
|
+
}
|
1383
|
+
});
|
1384
|
+
}
|
1385
|
+
}], [{
|
1386
|
+
key: 'attachTo',
|
1387
|
+
value: function attachTo(root) {
|
1388
|
+
return new MDCGridList(root);
|
1389
|
+
}
|
1390
|
+
}]);
|
1391
|
+
|
1392
|
+
return MDCGridList;
|
1393
|
+
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1394
|
+
|
1395
|
+
/***/ }),
|
1396
|
+
/* 13 */
|
1112
1397
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1113
1398
|
|
1114
1399
|
"use strict";
|
1115
1400
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1116
1401
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1117
1402
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(1);
|
1118
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
1403
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(32);
|
1119
1404
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggleFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
1120
1405
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCIconToggle", function() { return MDCIconToggle; });
|
1121
1406
|
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; };
|
@@ -1298,14 +1583,14 @@ var MDCIconToggle = function (_MDCComponent) {
|
|
1298
1583
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1299
1584
|
|
1300
1585
|
/***/ }),
|
1301
|
-
/*
|
1586
|
+
/* 14 */
|
1302
1587
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1303
1588
|
|
1304
1589
|
"use strict";
|
1305
1590
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1306
1591
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1307
1592
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ripple__ = __webpack_require__(1);
|
1308
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
1593
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(36);
|
1309
1594
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRadioFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
1310
1595
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCRadio", function() { return MDCRadio; });
|
1311
1596
|
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; };
|
@@ -1462,14 +1747,14 @@ var MDCRadio = function (_MDCComponent) {
|
|
1462
1747
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1463
1748
|
|
1464
1749
|
/***/ }),
|
1465
|
-
/*
|
1750
|
+
/* 15 */
|
1466
1751
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1467
1752
|
|
1468
1753
|
"use strict";
|
1469
1754
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1470
1755
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1471
1756
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_menu__ = __webpack_require__(4);
|
1472
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(
|
1757
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__foundation__ = __webpack_require__(39);
|
1473
1758
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelectFoundation", function() { return __WEBPACK_IMPORTED_MODULE_2__foundation__["a"]; });
|
1474
1759
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSelect", function() { return MDCSelect; });
|
1475
1760
|
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; }; }();
|
@@ -1692,13 +1977,13 @@ var MDCSelect = function (_MDCComponent) {
|
|
1692
1977
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1693
1978
|
|
1694
1979
|
/***/ }),
|
1695
|
-
/*
|
1980
|
+
/* 16 */
|
1696
1981
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1697
1982
|
|
1698
1983
|
"use strict";
|
1699
1984
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1700
1985
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1701
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
1986
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(41);
|
1702
1987
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_animation__ = __webpack_require__(2);
|
1703
1988
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSnackbarFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
1704
1989
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCSnackbar", function() { return MDCSnackbar; });
|
@@ -1813,13 +2098,13 @@ var MDCSnackbar = function (_MDCComponent) {
|
|
1813
2098
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
1814
2099
|
|
1815
2100
|
/***/ }),
|
1816
|
-
/*
|
2101
|
+
/* 17 */
|
1817
2102
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1818
2103
|
|
1819
2104
|
"use strict";
|
1820
2105
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1821
2106
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
1822
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
2107
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(42);
|
1823
2108
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextfieldFoundation", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
1824
2109
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MDCTextfield", function() { return MDCTextfield; });
|
1825
2110
|
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; };
|
@@ -2007,7 +2292,7 @@ var MDCTextfield = function (_MDCComponent) {
|
|
2007
2292
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
2008
2293
|
|
2009
2294
|
/***/ }),
|
2010
|
-
/*
|
2295
|
+
/* 18 */
|
2011
2296
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2012
2297
|
|
2013
2298
|
"use strict";
|
@@ -2137,7 +2422,7 @@ var MDCComponent = function () {
|
|
2137
2422
|
/* harmony default export */ __webpack_exports__["a"] = MDCComponent;
|
2138
2423
|
|
2139
2424
|
/***/ }),
|
2140
|
-
/*
|
2425
|
+
/* 19 */
|
2141
2426
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2142
2427
|
|
2143
2428
|
"use strict";
|
@@ -2188,12 +2473,12 @@ var numbers = {
|
|
2188
2473
|
};
|
2189
2474
|
|
2190
2475
|
/***/ }),
|
2191
|
-
/*
|
2476
|
+
/* 20 */
|
2192
2477
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2193
2478
|
|
2194
2479
|
"use strict";
|
2195
2480
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
2196
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
2481
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(19);
|
2197
2482
|
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; };
|
2198
2483
|
|
2199
2484
|
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; }; }();
|
@@ -2394,71 +2679,432 @@ var MDCCheckboxFoundation = function (_MDCFoundation) {
|
|
2394
2679
|
}
|
2395
2680
|
}
|
2396
2681
|
}, {
|
2397
|
-
key: 'determineCheckState_',
|
2398
|
-
value: function determineCheckState_(nativeCb) {
|
2399
|
-
var TRANSITION_STATE_INDETERMINATE = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_INDETERMINATE,
|
2400
|
-
TRANSITION_STATE_CHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_CHECKED,
|
2401
|
-
TRANSITION_STATE_UNCHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_UNCHECKED;
|
2402
|
-
|
2682
|
+
key: 'determineCheckState_',
|
2683
|
+
value: function determineCheckState_(nativeCb) {
|
2684
|
+
var TRANSITION_STATE_INDETERMINATE = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_INDETERMINATE,
|
2685
|
+
TRANSITION_STATE_CHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_CHECKED,
|
2686
|
+
TRANSITION_STATE_UNCHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_UNCHECKED;
|
2687
|
+
|
2688
|
+
|
2689
|
+
if (nativeCb.indeterminate) {
|
2690
|
+
return TRANSITION_STATE_INDETERMINATE;
|
2691
|
+
}
|
2692
|
+
return nativeCb.checked ? TRANSITION_STATE_CHECKED : TRANSITION_STATE_UNCHECKED;
|
2693
|
+
}
|
2694
|
+
}, {
|
2695
|
+
key: 'getTransitionAnimationClass_',
|
2696
|
+
value: function getTransitionAnimationClass_(oldState, newState) {
|
2697
|
+
var TRANSITION_STATE_INIT = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_INIT,
|
2698
|
+
TRANSITION_STATE_CHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_CHECKED,
|
2699
|
+
TRANSITION_STATE_UNCHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_UNCHECKED;
|
2700
|
+
var _MDCCheckboxFoundatio = MDCCheckboxFoundation.cssClasses,
|
2701
|
+
ANIM_UNCHECKED_CHECKED = _MDCCheckboxFoundatio.ANIM_UNCHECKED_CHECKED,
|
2702
|
+
ANIM_UNCHECKED_INDETERMINATE = _MDCCheckboxFoundatio.ANIM_UNCHECKED_INDETERMINATE,
|
2703
|
+
ANIM_CHECKED_UNCHECKED = _MDCCheckboxFoundatio.ANIM_CHECKED_UNCHECKED,
|
2704
|
+
ANIM_CHECKED_INDETERMINATE = _MDCCheckboxFoundatio.ANIM_CHECKED_INDETERMINATE,
|
2705
|
+
ANIM_INDETERMINATE_CHECKED = _MDCCheckboxFoundatio.ANIM_INDETERMINATE_CHECKED,
|
2706
|
+
ANIM_INDETERMINATE_UNCHECKED = _MDCCheckboxFoundatio.ANIM_INDETERMINATE_UNCHECKED;
|
2707
|
+
|
2708
|
+
|
2709
|
+
switch (oldState) {
|
2710
|
+
case TRANSITION_STATE_INIT:
|
2711
|
+
if (newState === TRANSITION_STATE_UNCHECKED) {
|
2712
|
+
return '';
|
2713
|
+
}
|
2714
|
+
// fallthrough
|
2715
|
+
case TRANSITION_STATE_UNCHECKED:
|
2716
|
+
return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;
|
2717
|
+
case TRANSITION_STATE_CHECKED:
|
2718
|
+
return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;
|
2719
|
+
// TRANSITION_STATE_INDETERMINATE
|
2720
|
+
default:
|
2721
|
+
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
|
2722
|
+
}
|
2723
|
+
}
|
2724
|
+
}, {
|
2725
|
+
key: 'getNativeControl_',
|
2726
|
+
value: function getNativeControl_() {
|
2727
|
+
return this.adapter_.getNativeControl() || {
|
2728
|
+
checked: false,
|
2729
|
+
indeterminate: false,
|
2730
|
+
disabled: false
|
2731
|
+
};
|
2732
|
+
}
|
2733
|
+
}]);
|
2734
|
+
|
2735
|
+
return MDCCheckboxFoundation;
|
2736
|
+
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCFoundation"]);
|
2737
|
+
|
2738
|
+
/* harmony default export */ __webpack_exports__["a"] = MDCCheckboxFoundation;
|
2739
|
+
|
2740
|
+
|
2741
|
+
function validDescriptor(inputPropDesc) {
|
2742
|
+
return inputPropDesc && typeof inputPropDesc.set === 'function';
|
2743
|
+
}
|
2744
|
+
|
2745
|
+
/***/ }),
|
2746
|
+
/* 21 */
|
2747
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2748
|
+
|
2749
|
+
"use strict";
|
2750
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cssClasses; });
|
2751
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return strings; });
|
2752
|
+
/**
|
2753
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
2754
|
+
*
|
2755
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
2756
|
+
* you may not use this file except in compliance with the License.
|
2757
|
+
* You may obtain a copy of the License at
|
2758
|
+
*
|
2759
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
2760
|
+
*
|
2761
|
+
* Unless required by applicable law or agreed to in writing, software
|
2762
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
2763
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
2764
|
+
* See the License for the specific language governing permissions and
|
2765
|
+
* limitations under the License.
|
2766
|
+
*/
|
2767
|
+
|
2768
|
+
var cssClasses = {
|
2769
|
+
ROOT: 'mdc-dialog',
|
2770
|
+
OPEN: 'mdc-dialog--open',
|
2771
|
+
BACKDROP: 'mdc-dialog__backdrop',
|
2772
|
+
SCROLL_LOCK: 'mdc-dialog-scroll-lock',
|
2773
|
+
ACCEPT_BTN: 'mdc-dialog__footer__button--accept',
|
2774
|
+
CANCEL_BTN: 'mdc-dialog__footer__button--cancel'
|
2775
|
+
};
|
2776
|
+
|
2777
|
+
var strings = {
|
2778
|
+
OPEN_DIALOG_SELECTOR: '.mdc-dialog--open',
|
2779
|
+
DIALOG_SURFACE_SELECTOR: '.mdc-dialog__surface',
|
2780
|
+
ACCEPT_SELECTOR: '.mdc-dialog__footer__button--accept',
|
2781
|
+
FOCUSABLE_ELEMENTS: 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), ' + 'button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]'
|
2782
|
+
};
|
2783
|
+
|
2784
|
+
/***/ }),
|
2785
|
+
/* 22 */
|
2786
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2787
|
+
|
2788
|
+
"use strict";
|
2789
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
2790
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(21);
|
2791
|
+
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; };
|
2792
|
+
|
2793
|
+
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; }; }();
|
2794
|
+
|
2795
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2796
|
+
|
2797
|
+
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; }
|
2798
|
+
|
2799
|
+
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; }
|
2800
|
+
|
2801
|
+
/**
|
2802
|
+
* Copyright 2017 Google Inc. All Rights Reserved.
|
2803
|
+
*
|
2804
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
2805
|
+
* you may not use this file except in compliance with the License.
|
2806
|
+
* You may obtain a copy of the License at
|
2807
|
+
*
|
2808
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
2809
|
+
*
|
2810
|
+
* Unless required by applicable law or agreed to in writing, software
|
2811
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
2812
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
2813
|
+
* See the License for the specific language governing permissions and
|
2814
|
+
* limitations under the License.
|
2815
|
+
*/
|
2816
|
+
|
2817
|
+
|
2818
|
+
|
2819
|
+
|
2820
|
+
var MDCDialogFoundation = function (_MDCFoundation) {
|
2821
|
+
_inherits(MDCDialogFoundation, _MDCFoundation);
|
2822
|
+
|
2823
|
+
_createClass(MDCDialogFoundation, null, [{
|
2824
|
+
key: 'cssClasses',
|
2825
|
+
get: function get() {
|
2826
|
+
return __WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */];
|
2827
|
+
}
|
2828
|
+
}, {
|
2829
|
+
key: 'strings',
|
2830
|
+
get: function get() {
|
2831
|
+
return __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */];
|
2832
|
+
}
|
2833
|
+
}, {
|
2834
|
+
key: 'defaultAdapter',
|
2835
|
+
get: function get() {
|
2836
|
+
return {
|
2837
|
+
hasClass: function hasClass() /* className: string */{},
|
2838
|
+
addClass: function addClass() /* className: string */{},
|
2839
|
+
removeClass: function removeClass() /* className: string */{},
|
2840
|
+
setAttr: function setAttr() /* attr: string, val: string */{},
|
2841
|
+
addBodyClass: function addBodyClass() /* className: string */{},
|
2842
|
+
removeBodyClass: function removeBodyClass() /* className: string */{},
|
2843
|
+
eventTargetHasClass: function eventTargetHasClass() {
|
2844
|
+
return (/* target: EventTarget, className: string */ /* boolean */false
|
2845
|
+
);
|
2846
|
+
},
|
2847
|
+
registerInteractionHandler: function registerInteractionHandler() /* evt: string, handler: EventListener */{},
|
2848
|
+
deregisterInteractionHandler: function deregisterInteractionHandler() /* evt: string, handler: EventListener */{},
|
2849
|
+
registerSurfaceInteractionHandler: function registerSurfaceInteractionHandler() /* evt: string, handler: EventListener */{},
|
2850
|
+
deregisterSurfaceInteractionHandler: function deregisterSurfaceInteractionHandler() /* evt: string, handler: EventListener */{},
|
2851
|
+
registerDocumentKeydownHandler: function registerDocumentKeydownHandler() /* handler: EventListener */{},
|
2852
|
+
deregisterDocumentKeydownHandler: function deregisterDocumentKeydownHandler() /* handler: EventListener */{},
|
2853
|
+
registerFocusTrappingHandler: function registerFocusTrappingHandler() /* handler: EventListener */{},
|
2854
|
+
deregisterFocusTrappingHandler: function deregisterFocusTrappingHandler() /* handler: EventListener */{},
|
2855
|
+
numFocusableTargets: function numFocusableTargets() {
|
2856
|
+
return (/* number */0
|
2857
|
+
);
|
2858
|
+
},
|
2859
|
+
setDialogFocusFirstTarget: function setDialogFocusFirstTarget() {},
|
2860
|
+
setInitialFocus: function setInitialFocus() {},
|
2861
|
+
getFocusableElements: function getFocusableElements() {
|
2862
|
+
return (/* handler: EventListener */ /* Array<Element> */[]
|
2863
|
+
);
|
2864
|
+
},
|
2865
|
+
saveElementTabState: function saveElementTabState() /* el: Element */{},
|
2866
|
+
restoreElementTabState: function restoreElementTabState() /* el: Element */{},
|
2867
|
+
makeElementUntabbable: function makeElementUntabbable() /* el: Element */{},
|
2868
|
+
setBodyAttr: function setBodyAttr() /* attr: string, val: string */{},
|
2869
|
+
rmBodyAttr: function rmBodyAttr() /* attr: string */{},
|
2870
|
+
getFocusedTarget: function getFocusedTarget() {},
|
2871
|
+
setFocusedTarget: function setFocusedTarget() /* target: EventTarget */{},
|
2872
|
+
notifyAccept: function notifyAccept() {},
|
2873
|
+
notifyCancel: function notifyCancel() {}
|
2874
|
+
};
|
2875
|
+
}
|
2876
|
+
}]);
|
2877
|
+
|
2878
|
+
function MDCDialogFoundation(adapter) {
|
2879
|
+
_classCallCheck(this, MDCDialogFoundation);
|
2880
|
+
|
2881
|
+
var _this = _possibleConstructorReturn(this, (MDCDialogFoundation.__proto__ || Object.getPrototypeOf(MDCDialogFoundation)).call(this, _extends(MDCDialogFoundation.defaultAdapter, adapter)));
|
2882
|
+
|
2883
|
+
_this.lastFocusedTarget_ = null;
|
2884
|
+
_this.currentFocusedElIndex_ = -1;
|
2885
|
+
_this.isOpen_ = false;
|
2886
|
+
_this.isResettingToFirstFocusTarget_ = false;
|
2887
|
+
_this.componentClickHandler_ = function () {
|
2888
|
+
return _this.cancel(true);
|
2889
|
+
};
|
2890
|
+
_this.dialogClickHandler_ = function (evt) {
|
2891
|
+
return _this.handleDialogClick_(evt);
|
2892
|
+
};
|
2893
|
+
_this.focusHandler_ = function (evt) {
|
2894
|
+
return _this.setFocus_(evt);
|
2895
|
+
};
|
2896
|
+
_this.documentKeydownHandler_ = function (evt) {
|
2897
|
+
if (evt.key && evt.key === 'Escape' || evt.keyCode === 27) {
|
2898
|
+
_this.cancel(true);
|
2899
|
+
}
|
2900
|
+
};
|
2901
|
+
return _this;
|
2902
|
+
}
|
2903
|
+
|
2904
|
+
_createClass(MDCDialogFoundation, [{
|
2905
|
+
key: 'destroy',
|
2906
|
+
value: function destroy() {
|
2907
|
+
// Ensure that dialog is cleaned up when destroyed
|
2908
|
+
this.close();
|
2909
|
+
}
|
2910
|
+
}, {
|
2911
|
+
key: 'open',
|
2912
|
+
value: function open() {
|
2913
|
+
this.lastFocusedTarget_ = this.adapter_.getFocusedTarget();
|
2914
|
+
this.makeTabbable_();
|
2915
|
+
this.adapter_.registerDocumentKeydownHandler(this.documentKeydownHandler_);
|
2916
|
+
this.adapter_.registerSurfaceInteractionHandler('click', this.dialogClickHandler_);
|
2917
|
+
this.adapter_.registerInteractionHandler('click', this.componentClickHandler_);
|
2918
|
+
this.adapter_.setInitialFocus();
|
2919
|
+
this.adapter_.registerFocusTrappingHandler(this.focusHandler_);
|
2920
|
+
this.disableScroll_();
|
2921
|
+
this.adapter_.setBodyAttr('aria-hidden', 'true');
|
2922
|
+
this.adapter_.setAttr('aria-hidden', 'false');
|
2923
|
+
this.adapter_.addClass(MDCDialogFoundation.cssClasses.OPEN);
|
2924
|
+
this.isOpen_ = true;
|
2925
|
+
this.currentFocusedElIndex_ = this.adapter_.numFocusableTargets() - 1;
|
2926
|
+
}
|
2927
|
+
}, {
|
2928
|
+
key: 'close',
|
2929
|
+
value: function close() {
|
2930
|
+
this.makeUntabbable_();
|
2931
|
+
this.adapter_.deregisterSurfaceInteractionHandler('click', this.dialogClickHandler_);
|
2932
|
+
this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_);
|
2933
|
+
this.adapter_.deregisterInteractionHandler('click', this.componentClickHandler_);
|
2934
|
+
this.adapter_.deregisterFocusTrappingHandler(this.focusHandler_);
|
2935
|
+
this.adapter_.removeClass(MDCDialogFoundation.cssClasses.OPEN);
|
2936
|
+
this.enableScroll_();
|
2937
|
+
this.adapter_.rmBodyAttr('aria-hidden');
|
2938
|
+
this.adapter_.setAttr('aria-hidden', 'true');
|
2939
|
+
|
2940
|
+
if (this.lastFocusedTarget_) {
|
2941
|
+
this.adapter_.setFocusedTarget(this.lastFocusedTarget_);
|
2942
|
+
}
|
2943
|
+
this.lastFocusedTarget_ = null;
|
2944
|
+
}
|
2945
|
+
}, {
|
2946
|
+
key: 'isOpen',
|
2947
|
+
value: function isOpen() {
|
2948
|
+
return this.isOpen_;
|
2949
|
+
}
|
2950
|
+
}, {
|
2951
|
+
key: 'accept',
|
2952
|
+
value: function accept(shouldNotify) {
|
2953
|
+
if (shouldNotify) {
|
2954
|
+
this.adapter_.notifyAccept();
|
2955
|
+
}
|
2956
|
+
|
2957
|
+
this.close();
|
2958
|
+
}
|
2959
|
+
}, {
|
2960
|
+
key: 'cancel',
|
2961
|
+
value: function cancel(shouldNotify) {
|
2962
|
+
if (shouldNotify) {
|
2963
|
+
this.adapter_.notifyCancel();
|
2964
|
+
}
|
2965
|
+
|
2966
|
+
this.close();
|
2967
|
+
}
|
2968
|
+
}, {
|
2969
|
+
key: 'handleDialogClick_',
|
2970
|
+
value: function handleDialogClick_(evt) {
|
2971
|
+
evt.stopPropagation();
|
2972
|
+
var target = evt.target;
|
2973
|
+
|
2974
|
+
if (this.adapter_.eventTargetHasClass(target, __WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].ACCEPT_BTN)) {
|
2975
|
+
this.accept(true);
|
2976
|
+
} else if (this.adapter_.eventTargetHasClass(target, __WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].CANCEL_BTN)) {
|
2977
|
+
this.cancel(true);
|
2978
|
+
}
|
2979
|
+
}
|
2980
|
+
}, {
|
2981
|
+
key: 'makeUntabbable_',
|
2982
|
+
value: function makeUntabbable_() {
|
2983
|
+
var elements = this.adapter_.getFocusableElements();
|
2984
|
+
if (elements) {
|
2985
|
+
for (var i = 0; i < elements.length; i++) {
|
2986
|
+
this.adapter_.saveElementTabState(elements[i]);
|
2987
|
+
this.adapter_.makeElementUntabbable(elements[i]);
|
2988
|
+
}
|
2989
|
+
}
|
2990
|
+
}
|
2991
|
+
}, {
|
2992
|
+
key: 'makeTabbable_',
|
2993
|
+
value: function makeTabbable_() {
|
2994
|
+
var elements = this.adapter_.getFocusableElements();
|
2995
|
+
if (elements) {
|
2996
|
+
for (var i = 0; i < elements.length; i++) {
|
2997
|
+
this.adapter_.restoreElementTabState(elements[i]);
|
2998
|
+
}
|
2999
|
+
}
|
3000
|
+
}
|
3001
|
+
}, {
|
3002
|
+
key: 'setFocus_',
|
3003
|
+
value: function setFocus_(evt) {
|
3004
|
+
if (!evt.relatedTarget) {
|
3005
|
+
// Do not increment the focused el index when re-focusing on same element, e.g. switching windows
|
3006
|
+
return;
|
3007
|
+
}
|
2403
3008
|
|
2404
|
-
if (
|
2405
|
-
return
|
3009
|
+
if (this.isResettingToFirstFocusTarget_) {
|
3010
|
+
return;
|
2406
3011
|
}
|
2407
|
-
return nativeCb.checked ? TRANSITION_STATE_CHECKED : TRANSITION_STATE_UNCHECKED;
|
2408
|
-
}
|
2409
|
-
}, {
|
2410
|
-
key: 'getTransitionAnimationClass_',
|
2411
|
-
value: function getTransitionAnimationClass_(oldState, newState) {
|
2412
|
-
var TRANSITION_STATE_INIT = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_INIT,
|
2413
|
-
TRANSITION_STATE_CHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_CHECKED,
|
2414
|
-
TRANSITION_STATE_UNCHECKED = __WEBPACK_IMPORTED_MODULE_1__constants__["b" /* strings */].TRANSITION_STATE_UNCHECKED;
|
2415
|
-
var _MDCCheckboxFoundatio = MDCCheckboxFoundation.cssClasses,
|
2416
|
-
ANIM_UNCHECKED_CHECKED = _MDCCheckboxFoundatio.ANIM_UNCHECKED_CHECKED,
|
2417
|
-
ANIM_UNCHECKED_INDETERMINATE = _MDCCheckboxFoundatio.ANIM_UNCHECKED_INDETERMINATE,
|
2418
|
-
ANIM_CHECKED_UNCHECKED = _MDCCheckboxFoundatio.ANIM_CHECKED_UNCHECKED,
|
2419
|
-
ANIM_CHECKED_INDETERMINATE = _MDCCheckboxFoundatio.ANIM_CHECKED_INDETERMINATE,
|
2420
|
-
ANIM_INDETERMINATE_CHECKED = _MDCCheckboxFoundatio.ANIM_INDETERMINATE_CHECKED,
|
2421
|
-
ANIM_INDETERMINATE_UNCHECKED = _MDCCheckboxFoundatio.ANIM_INDETERMINATE_UNCHECKED;
|
2422
3012
|
|
3013
|
+
this.currentFocusedElIndex_ = (this.currentFocusedElIndex_ + 1) % this.adapter_.numFocusableTargets();
|
2423
3014
|
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2428
|
-
}
|
2429
|
-
// fallthrough
|
2430
|
-
case TRANSITION_STATE_UNCHECKED:
|
2431
|
-
return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;
|
2432
|
-
case TRANSITION_STATE_CHECKED:
|
2433
|
-
return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;
|
2434
|
-
// TRANSITION_STATE_INDETERMINATE
|
2435
|
-
default:
|
2436
|
-
return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;
|
3015
|
+
if (this.currentFocusedElIndex_ === 0) {
|
3016
|
+
this.isResettingToFirstFocusTarget_ = true;
|
3017
|
+
this.adapter_.setDialogFocusFirstTarget();
|
3018
|
+
this.isResettingToFirstFocusTarget_ = false;
|
2437
3019
|
}
|
2438
3020
|
}
|
2439
3021
|
}, {
|
2440
|
-
key: '
|
2441
|
-
value: function
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
3022
|
+
key: 'disableScroll_',
|
3023
|
+
value: function disableScroll_() {
|
3024
|
+
this.adapter_.addBodyClass(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].SCROLL_LOCK);
|
3025
|
+
}
|
3026
|
+
}, {
|
3027
|
+
key: 'enableScroll_',
|
3028
|
+
value: function enableScroll_() {
|
3029
|
+
this.adapter_.removeBodyClass(__WEBPACK_IMPORTED_MODULE_1__constants__["a" /* cssClasses */].SCROLL_LOCK);
|
2447
3030
|
}
|
2448
3031
|
}]);
|
2449
3032
|
|
2450
|
-
return
|
3033
|
+
return MDCDialogFoundation;
|
2451
3034
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCFoundation"]);
|
2452
3035
|
|
2453
|
-
/* harmony default export */ __webpack_exports__["a"] =
|
3036
|
+
/* harmony default export */ __webpack_exports__["a"] = MDCDialogFoundation;
|
2454
3037
|
|
3038
|
+
/***/ }),
|
3039
|
+
/* 23 */
|
3040
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2455
3041
|
|
2456
|
-
|
2457
|
-
|
3042
|
+
"use strict";
|
3043
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
3044
|
+
/* harmony export (immutable) */ __webpack_exports__["applyPassive"] = applyPassive;
|
3045
|
+
/* harmony export (immutable) */ __webpack_exports__["saveElementTabState"] = saveElementTabState;
|
3046
|
+
/* harmony export (immutable) */ __webpack_exports__["restoreElementTabState"] = restoreElementTabState;
|
3047
|
+
/**
|
3048
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3049
|
+
*
|
3050
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
3051
|
+
* you may not use this file except in compliance with the License.
|
3052
|
+
* You may obtain a copy of the License at
|
3053
|
+
*
|
3054
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
3055
|
+
*
|
3056
|
+
* Unless required by applicable law or agreed to in writing, software
|
3057
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
3058
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
3059
|
+
* See the License for the specific language governing permissions and
|
3060
|
+
* limitations under the License.
|
3061
|
+
*/
|
3062
|
+
var TAB_DATA = 'data-mdc-tabindex';
|
3063
|
+
var TAB_DATA_HANDLED = 'data-mdc-tabindex-handled';
|
3064
|
+
|
3065
|
+
var supportsPassive_ = void 0;
|
3066
|
+
|
3067
|
+
// Determine whether the current browser supports passive event listeners, and if so, use them.
|
3068
|
+
function applyPassive() {
|
3069
|
+
var globalObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
3070
|
+
var forceRefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
3071
|
+
|
3072
|
+
if (supportsPassive_ === undefined || forceRefresh) {
|
3073
|
+
var isSupported = false;
|
3074
|
+
try {
|
3075
|
+
globalObj.document.addEventListener('test', null, { get passive() {
|
3076
|
+
isSupported = true;
|
3077
|
+
} });
|
3078
|
+
} catch (e) {}
|
3079
|
+
|
3080
|
+
supportsPassive_ = isSupported;
|
3081
|
+
}
|
3082
|
+
|
3083
|
+
return supportsPassive_ ? { passive: true } : false;
|
3084
|
+
}
|
3085
|
+
|
3086
|
+
function saveElementTabState(el) {
|
3087
|
+
if (el.hasAttribute('tabindex')) {
|
3088
|
+
el.setAttribute(TAB_DATA, el.getAttribute('tabindex'));
|
3089
|
+
}
|
3090
|
+
el.setAttribute(TAB_DATA_HANDLED, true);
|
3091
|
+
}
|
3092
|
+
|
3093
|
+
function restoreElementTabState(el) {
|
3094
|
+
// Only modify elements we've already handled, in case anything was dynamically added since we saved state.
|
3095
|
+
if (el.hasAttribute(TAB_DATA_HANDLED)) {
|
3096
|
+
if (el.hasAttribute(TAB_DATA)) {
|
3097
|
+
el.setAttribute('tabindex', el.getAttribute(TAB_DATA));
|
3098
|
+
el.removeAttribute(TAB_DATA);
|
3099
|
+
} else {
|
3100
|
+
el.removeAttribute('tabindex');
|
3101
|
+
}
|
3102
|
+
el.removeAttribute(TAB_DATA_HANDLED);
|
3103
|
+
}
|
2458
3104
|
}
|
2459
3105
|
|
2460
3106
|
/***/ }),
|
2461
|
-
/*
|
3107
|
+
/* 24 */
|
2462
3108
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2463
3109
|
|
2464
3110
|
"use strict";
|
@@ -2496,12 +3142,12 @@ var strings = {
|
|
2496
3142
|
};
|
2497
3143
|
|
2498
3144
|
/***/ }),
|
2499
|
-
/*
|
3145
|
+
/* 25 */
|
2500
3146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2501
3147
|
|
2502
3148
|
"use strict";
|
2503
3149
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
2504
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
3150
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(24);
|
2505
3151
|
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; };
|
2506
3152
|
|
2507
3153
|
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; }; }();
|
@@ -2824,13 +3470,13 @@ var MDCTemporaryDrawerFoundation = function (_MDCFoundation) {
|
|
2824
3470
|
/* harmony default export */ __webpack_exports__["a"] = MDCTemporaryDrawerFoundation;
|
2825
3471
|
|
2826
3472
|
/***/ }),
|
2827
|
-
/*
|
3473
|
+
/* 26 */
|
2828
3474
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2829
3475
|
|
2830
3476
|
"use strict";
|
2831
3477
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
2832
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
2833
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(
|
3478
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(25);
|
3479
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(27);
|
2834
3480
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
2835
3481
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCTemporaryDrawer; });
|
2836
3482
|
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; }; }();
|
@@ -2981,7 +3627,7 @@ var MDCTemporaryDrawer = function (_MDCComponent) {
|
|
2981
3627
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
2982
3628
|
|
2983
3629
|
/***/ }),
|
2984
|
-
/*
|
3630
|
+
/* 27 */
|
2985
3631
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2986
3632
|
|
2987
3633
|
"use strict";
|
@@ -3099,7 +3745,7 @@ function restoreElementTabState(el) {
|
|
3099
3745
|
}
|
3100
3746
|
|
3101
3747
|
/***/ }),
|
3102
|
-
/*
|
3748
|
+
/* 28 */
|
3103
3749
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3104
3750
|
|
3105
3751
|
"use strict";
|
@@ -3130,12 +3776,12 @@ var strings = {
|
|
3130
3776
|
};
|
3131
3777
|
|
3132
3778
|
/***/ }),
|
3133
|
-
/*
|
3779
|
+
/* 29 */
|
3134
3780
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3135
3781
|
|
3136
3782
|
"use strict";
|
3137
3783
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
3138
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
3784
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(28);
|
3139
3785
|
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; };
|
3140
3786
|
|
3141
3787
|
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; }; }();
|
@@ -3229,7 +3875,147 @@ var MDCFormFieldFoundation = function (_MDCFoundation) {
|
|
3229
3875
|
/* harmony default export */ __webpack_exports__["a"] = MDCFormFieldFoundation;
|
3230
3876
|
|
3231
3877
|
/***/ }),
|
3232
|
-
/*
|
3878
|
+
/* 30 */
|
3879
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3880
|
+
|
3881
|
+
"use strict";
|
3882
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return strings; });
|
3883
|
+
/**
|
3884
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3885
|
+
*
|
3886
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
3887
|
+
* you may not use this file except in compliance with the License.
|
3888
|
+
* You may obtain a copy of the License at
|
3889
|
+
*
|
3890
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
3891
|
+
*
|
3892
|
+
* Unless required by applicable law or agreed to in writing, software
|
3893
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
3894
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
3895
|
+
* See the License for the specific language governing permissions and
|
3896
|
+
* limitations under the License.
|
3897
|
+
*/
|
3898
|
+
var strings = {
|
3899
|
+
TILES_SELECTOR: '.mdc-grid-list__tiles',
|
3900
|
+
TILE_SELECTOR: '.mdc-grid-tile'
|
3901
|
+
};
|
3902
|
+
|
3903
|
+
/***/ }),
|
3904
|
+
/* 31 */
|
3905
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3906
|
+
|
3907
|
+
"use strict";
|
3908
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
3909
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(30);
|
3910
|
+
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; };
|
3911
|
+
|
3912
|
+
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; }; }();
|
3913
|
+
|
3914
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3915
|
+
|
3916
|
+
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; }
|
3917
|
+
|
3918
|
+
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; }
|
3919
|
+
|
3920
|
+
/**
|
3921
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3922
|
+
*
|
3923
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
3924
|
+
* you may not use this file except in compliance with the License.
|
3925
|
+
* You may obtain a copy of the License at
|
3926
|
+
*
|
3927
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
3928
|
+
*
|
3929
|
+
* Unless required by applicable law or agreed to in writing, software
|
3930
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
3931
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
3932
|
+
* See the License for the specific language governing permissions and
|
3933
|
+
* limitations under the License.
|
3934
|
+
*/
|
3935
|
+
|
3936
|
+
|
3937
|
+
|
3938
|
+
|
3939
|
+
var MDCGridListFoundation = function (_MDCFoundation) {
|
3940
|
+
_inherits(MDCGridListFoundation, _MDCFoundation);
|
3941
|
+
|
3942
|
+
_createClass(MDCGridListFoundation, null, [{
|
3943
|
+
key: 'strings',
|
3944
|
+
get: function get() {
|
3945
|
+
return __WEBPACK_IMPORTED_MODULE_1__constants__["a" /* strings */];
|
3946
|
+
}
|
3947
|
+
}, {
|
3948
|
+
key: 'defaultAdapter',
|
3949
|
+
get: function get() {
|
3950
|
+
return {
|
3951
|
+
getOffsetWidth: function getOffsetWidth() {
|
3952
|
+
return (/* number */0
|
3953
|
+
);
|
3954
|
+
},
|
3955
|
+
getOffsetWidthForTileAtIndex: function getOffsetWidthForTileAtIndex() {
|
3956
|
+
return (/* index: number */ /* number */0
|
3957
|
+
);
|
3958
|
+
},
|
3959
|
+
setStyleForTilesElement: function setStyleForTilesElement() /* property: string, value: string */{},
|
3960
|
+
registerResizeHandler: function registerResizeHandler() /* handler: EventListener */{},
|
3961
|
+
deregisterResizeHandler: function deregisterResizeHandler() /* handler: EventListener */{}
|
3962
|
+
};
|
3963
|
+
}
|
3964
|
+
}]);
|
3965
|
+
|
3966
|
+
function MDCGridListFoundation(adapter) {
|
3967
|
+
_classCallCheck(this, MDCGridListFoundation);
|
3968
|
+
|
3969
|
+
var _this = _possibleConstructorReturn(this, (MDCGridListFoundation.__proto__ || Object.getPrototypeOf(MDCGridListFoundation)).call(this, _extends(MDCGridListFoundation.defaultAdapter, adapter)));
|
3970
|
+
|
3971
|
+
_this.resizeHandler_ = function () {
|
3972
|
+
return _this.alignCenter();
|
3973
|
+
};
|
3974
|
+
_this.resizeFrame_ = 0;
|
3975
|
+
return _this;
|
3976
|
+
}
|
3977
|
+
|
3978
|
+
_createClass(MDCGridListFoundation, [{
|
3979
|
+
key: 'init',
|
3980
|
+
value: function init() {
|
3981
|
+
this.alignCenter();
|
3982
|
+
this.adapter_.registerResizeHandler(this.resizeHandler_);
|
3983
|
+
}
|
3984
|
+
}, {
|
3985
|
+
key: 'destroy',
|
3986
|
+
value: function destroy() {
|
3987
|
+
this.adapter_.deregisterResizeHandler(this.resizeHandler_);
|
3988
|
+
}
|
3989
|
+
}, {
|
3990
|
+
key: 'alignCenter',
|
3991
|
+
value: function alignCenter() {
|
3992
|
+
var _this2 = this;
|
3993
|
+
|
3994
|
+
if (this.resizeFrame_ !== 0) {
|
3995
|
+
cancelAnimationFrame(this.resizeFrame_);
|
3996
|
+
}
|
3997
|
+
this.resizeFrame_ = requestAnimationFrame(function () {
|
3998
|
+
_this2.alignCenter_();
|
3999
|
+
_this2.resizeFrame_ = 0;
|
4000
|
+
});
|
4001
|
+
}
|
4002
|
+
}, {
|
4003
|
+
key: 'alignCenter_',
|
4004
|
+
value: function alignCenter_() {
|
4005
|
+
var gridWidth = this.adapter_.getOffsetWidth();
|
4006
|
+
var itemWidth = this.adapter_.getOffsetWidthForTileAtIndex(0);
|
4007
|
+
var tilesWidth = itemWidth * Math.floor(gridWidth / itemWidth);
|
4008
|
+
this.adapter_.setStyleForTilesElement('width', tilesWidth + 'px');
|
4009
|
+
}
|
4010
|
+
}]);
|
4011
|
+
|
4012
|
+
return MDCGridListFoundation;
|
4013
|
+
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCFoundation"]);
|
4014
|
+
|
4015
|
+
/* harmony default export */ __webpack_exports__["a"] = MDCGridListFoundation;
|
4016
|
+
|
4017
|
+
/***/ }),
|
4018
|
+
/* 32 */
|
3233
4019
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3234
4020
|
|
3235
4021
|
"use strict";
|
@@ -3471,7 +4257,7 @@ function isSpace(_ref3) {
|
|
3471
4257
|
}
|
3472
4258
|
|
3473
4259
|
/***/ }),
|
3474
|
-
/*
|
4260
|
+
/* 33 */
|
3475
4261
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3476
4262
|
|
3477
4263
|
"use strict";
|
@@ -3528,12 +4314,12 @@ var numbers = {
|
|
3528
4314
|
};
|
3529
4315
|
|
3530
4316
|
/***/ }),
|
3531
|
-
/*
|
4317
|
+
/* 34 */
|
3532
4318
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3533
4319
|
|
3534
4320
|
"use strict";
|
3535
4321
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
3536
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
4322
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(33);
|
3537
4323
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(6);
|
3538
4324
|
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; };
|
3539
4325
|
|
@@ -4070,12 +4856,12 @@ var MDCSimpleMenuFoundation = function (_MDCFoundation) {
|
|
4070
4856
|
/* harmony default export */ __webpack_exports__["a"] = MDCSimpleMenuFoundation;
|
4071
4857
|
|
4072
4858
|
/***/ }),
|
4073
|
-
/*
|
4859
|
+
/* 35 */
|
4074
4860
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4075
4861
|
|
4076
4862
|
"use strict";
|
4077
4863
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
4078
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(
|
4864
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation__ = __webpack_require__(34);
|
4079
4865
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(6);
|
4080
4866
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__foundation__["a"]; });
|
4081
4867
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MDCSimpleMenu; });
|
@@ -4288,7 +5074,7 @@ var MDCSimpleMenu = function (_MDCComponent) {
|
|
4288
5074
|
}(__WEBPACK_IMPORTED_MODULE_0__material_base__["MDCComponent"]);
|
4289
5075
|
|
4290
5076
|
/***/ }),
|
4291
|
-
/*
|
5077
|
+
/* 36 */
|
4292
5078
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4293
5079
|
|
4294
5080
|
"use strict";
|
@@ -4397,7 +5183,7 @@ var MDCRadioFoundation = function (_MDCFoundation) {
|
|
4397
5183
|
/* harmony default export */ __webpack_exports__["a"] = MDCRadioFoundation;
|
4398
5184
|
|
4399
5185
|
/***/ }),
|
4400
|
-
/*
|
5186
|
+
/* 37 */
|
4401
5187
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4402
5188
|
|
4403
5189
|
"use strict";
|
@@ -4464,13 +5250,13 @@ var numbers = {
|
|
4464
5250
|
};
|
4465
5251
|
|
4466
5252
|
/***/ }),
|
4467
|
-
/*
|
5253
|
+
/* 38 */
|
4468
5254
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4469
5255
|
|
4470
5256
|
"use strict";
|
4471
5257
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
4472
5258
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_animation__ = __webpack_require__(2);
|
4473
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(
|
5259
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants__ = __webpack_require__(37);
|
4474
5260
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(3);
|
4475
5261
|
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; };
|
4476
5262
|
|
@@ -4987,7 +5773,7 @@ var MDCRippleFoundation = function (_MDCFoundation) {
|
|
4987
5773
|
/* harmony default export */ __webpack_exports__["a"] = MDCRippleFoundation;
|
4988
5774
|
|
4989
5775
|
/***/ }),
|
4990
|
-
/*
|
5776
|
+
/* 39 */
|
4991
5777
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4992
5778
|
|
4993
5779
|
"use strict";
|
@@ -5328,7 +6114,7 @@ var MDCSelectFoundation = function (_MDCFoundation) {
|
|
5328
6114
|
/* harmony default export */ __webpack_exports__["a"] = MDCSelectFoundation;
|
5329
6115
|
|
5330
6116
|
/***/ }),
|
5331
|
-
/*
|
6117
|
+
/* 40 */
|
5332
6118
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5333
6119
|
|
5334
6120
|
"use strict";
|
@@ -5374,12 +6160,12 @@ var numbers = {
|
|
5374
6160
|
};
|
5375
6161
|
|
5376
6162
|
/***/ }),
|
5377
|
-
/*
|
6163
|
+
/* 41 */
|
5378
6164
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5379
6165
|
|
5380
6166
|
"use strict";
|
5381
6167
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
5382
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(
|
6168
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants__ = __webpack_require__(40);
|
5383
6169
|
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; };
|
5384
6170
|
|
5385
6171
|
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; }; }();
|
@@ -5582,7 +6368,7 @@ var MDCSnackbarFoundation = function (_MDCFoundation) {
|
|
5582
6368
|
/* harmony default export */ __webpack_exports__["a"] = MDCSnackbarFoundation;
|
5583
6369
|
|
5584
6370
|
/***/ }),
|
5585
|
-
/*
|
6371
|
+
/* 42 */
|
5586
6372
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5587
6373
|
|
5588
6374
|
"use strict";
|
@@ -5832,35 +6618,39 @@ var MDCTextfieldFoundation = function (_MDCFoundation) {
|
|
5832
6618
|
/* harmony default export */ __webpack_exports__["a"] = MDCTextfieldFoundation;
|
5833
6619
|
|
5834
6620
|
/***/ }),
|
5835
|
-
/*
|
6621
|
+
/* 43 */
|
5836
6622
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5837
6623
|
|
5838
6624
|
"use strict";
|
5839
6625
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
5840
6626
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_base__ = __webpack_require__(0);
|
5841
6627
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_checkbox__ = __webpack_require__(8);
|
5842
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_form_field__ = __webpack_require__(
|
5843
|
-
/* harmony import */ var
|
5844
|
-
/* harmony import */ var
|
5845
|
-
/* harmony import */ var
|
5846
|
-
/* harmony import */ var
|
5847
|
-
/* harmony import */ var
|
5848
|
-
/* harmony import */ var
|
5849
|
-
/* harmony import */ var
|
5850
|
-
/* harmony import */ var
|
5851
|
-
/* harmony import */ var
|
6628
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_form_field__ = __webpack_require__(11);
|
6629
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__material_grid_list__ = __webpack_require__(12);
|
6630
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_icon_toggle__ = __webpack_require__(13);
|
6631
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_radio__ = __webpack_require__(14);
|
6632
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ripple__ = __webpack_require__(1);
|
6633
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__material_dialog__ = __webpack_require__(9);
|
6634
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__material_drawer__ = __webpack_require__(10);
|
6635
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__material_textfield__ = __webpack_require__(17);
|
6636
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__material_snackbar__ = __webpack_require__(16);
|
6637
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_menu__ = __webpack_require__(4);
|
6638
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__material_select__ = __webpack_require__(15);
|
6639
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__material_auto_init__ = __webpack_require__(7);
|
5852
6640
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "base", function() { return __WEBPACK_IMPORTED_MODULE_0__material_base__; });
|
5853
6641
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "checkbox", function() { return __WEBPACK_IMPORTED_MODULE_1__material_checkbox__; });
|
5854
6642
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "formField", function() { return __WEBPACK_IMPORTED_MODULE_2__material_form_field__; });
|
5855
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5856
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5857
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5858
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5859
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5860
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5861
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5862
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
5863
|
-
/* harmony reexport (
|
6643
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "gridList", function() { return __WEBPACK_IMPORTED_MODULE_3__material_grid_list__; });
|
6644
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "iconToggle", function() { return __WEBPACK_IMPORTED_MODULE_4__material_icon_toggle__; });
|
6645
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "radio", function() { return __WEBPACK_IMPORTED_MODULE_5__material_radio__; });
|
6646
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "ripple", function() { return __WEBPACK_IMPORTED_MODULE_6__material_ripple__; });
|
6647
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "snackbar", function() { return __WEBPACK_IMPORTED_MODULE_10__material_snackbar__; });
|
6648
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "dialog", function() { return __WEBPACK_IMPORTED_MODULE_7__material_dialog__; });
|
6649
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "drawer", function() { return __WEBPACK_IMPORTED_MODULE_8__material_drawer__; });
|
6650
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "textfield", function() { return __WEBPACK_IMPORTED_MODULE_9__material_textfield__; });
|
6651
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "menu", function() { return __WEBPACK_IMPORTED_MODULE_11__material_menu__; });
|
6652
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "select", function() { return __WEBPACK_IMPORTED_MODULE_12__material_select__; });
|
6653
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "autoInit", function() { return __WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a"]; });
|
5864
6654
|
/**
|
5865
6655
|
* Copyright 2016 Google Inc. All Rights Reserved.
|
5866
6656
|
*
|
@@ -5890,16 +6680,20 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
5890
6680
|
|
5891
6681
|
|
5892
6682
|
|
6683
|
+
|
6684
|
+
|
5893
6685
|
// Register all components
|
5894
|
-
|
5895
|
-
|
5896
|
-
|
5897
|
-
|
5898
|
-
|
5899
|
-
|
5900
|
-
|
5901
|
-
|
5902
|
-
|
6686
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCCheckbox', __WEBPACK_IMPORTED_MODULE_1__material_checkbox__["MDCCheckbox"]);
|
6687
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCDialog', __WEBPACK_IMPORTED_MODULE_7__material_dialog__["MDCDialog"]);
|
6688
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCTemporaryDrawer', __WEBPACK_IMPORTED_MODULE_8__material_drawer__["MDCTemporaryDrawer"]);
|
6689
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCRipple', __WEBPACK_IMPORTED_MODULE_6__material_ripple__["MDCRipple"]);
|
6690
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCGridList', __WEBPACK_IMPORTED_MODULE_3__material_grid_list__["MDCGridList"]);
|
6691
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCIconToggle', __WEBPACK_IMPORTED_MODULE_4__material_icon_toggle__["MDCIconToggle"]);
|
6692
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCRadio', __WEBPACK_IMPORTED_MODULE_5__material_radio__["MDCRadio"]);
|
6693
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCSnackbar', __WEBPACK_IMPORTED_MODULE_10__material_snackbar__["MDCSnackbar"]);
|
6694
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCTextfield', __WEBPACK_IMPORTED_MODULE_9__material_textfield__["MDCTextfield"]);
|
6695
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCSimpleMenu', __WEBPACK_IMPORTED_MODULE_11__material_menu__["MDCSimpleMenu"]);
|
6696
|
+
__WEBPACK_IMPORTED_MODULE_13__material_auto_init__["a" /* default */].register('MDCSelect', __WEBPACK_IMPORTED_MODULE_12__material_select__["MDCSelect"]);
|
5903
6697
|
|
5904
6698
|
// Export all components.
|
5905
6699
|
|