From 8c9a6acde365c50352171dd8353c5db92264ae0d Mon Sep 17 00:00:00 2001 From: Dylan Praul Date: Wed, 22 Apr 2020 14:15:50 -0400 Subject: [PATCH] 0.7.0 --- dist/angularjs-mdc-experimental.css | 2 +- dist/angularjs-mdc-experimental.js | 22 +- dist/angularjs-mdc-experimental.min.css | 2 +- dist/angularjs-mdc-experimental.min.js | 22 +- dist/angularjs-mdc.css | 2072 +++++++++++------------ dist/angularjs-mdc.js | 392 ++--- dist/angularjs-mdc.min.css | 2 +- dist/angularjs-mdc.min.js | 392 ++--- dist/mdc-button.css | 118 +- dist/mdc-button.js | 10 +- dist/mdc-button.min.css | 2 +- dist/mdc-button.min.js | 10 +- dist/mdc-card.css | 88 +- dist/mdc-card.min.css | 2 +- dist/mdc-checkbox.css | 132 +- dist/mdc-checkbox.js | 22 +- dist/mdc-checkbox.min.css | 2 +- dist/mdc-checkbox.min.js | 22 +- dist/mdc-dialog.css | 58 +- dist/mdc-dialog.js | 8 +- dist/mdc-dialog.min.css | 2 +- dist/mdc-dialog.min.js | 8 +- dist/mdc-drawer.css | 118 +- dist/mdc-drawer.min.css | 2 +- dist/mdc-elevation.css | 52 +- dist/mdc-elevation.min.css | 2 +- dist/mdc-floating-label.css | 10 +- dist/mdc-floating-label.min.css | 2 +- dist/mdc-form-field.css | 10 +- dist/mdc-form-field.js | 22 +- dist/mdc-form-field.min.css | 2 +- dist/mdc-form-field.min.js | 22 +- dist/mdc-grid-list.css | 82 +- dist/mdc-grid-list.js | 8 +- dist/mdc-grid-list.min.css | 2 +- dist/mdc-grid-list.min.js | 8 +- dist/mdc-icon-toggle.css | 42 +- dist/mdc-icon-toggle.js | 18 +- dist/mdc-icon-toggle.min.css | 2 +- dist/mdc-icon-toggle.min.js | 18 +- dist/mdc-icon.js | 408 ++++- dist/mdc-icon.min.js | 408 ++++- dist/mdc-line-ripple.css | 6 +- dist/mdc-line-ripple.min.css | 2 +- dist/mdc-list.css | 162 +- dist/mdc-list.js | 2 +- dist/mdc-list.min.css | 2 +- dist/mdc-list.min.js | 2 +- dist/mdc-menu-experimental.js | 12 +- dist/mdc-menu-experimental.min.js | 12 +- dist/mdc-menu.css | 36 +- dist/mdc-menu.js | 12 +- dist/mdc-menu.min.css | 2 +- dist/mdc-menu.min.js | 12 +- dist/mdc-radio.css | 92 +- dist/mdc-radio.js | 22 +- dist/mdc-radio.min.css | 2 +- dist/mdc-radio.min.js | 22 +- dist/mdc-ripple.css | 72 +- dist/mdc-ripple.js | 8 +- dist/mdc-ripple.min.css | 2 +- dist/mdc-ripple.min.js | 8 +- dist/mdc-select.css | 112 +- dist/mdc-select.js | 98 +- dist/mdc-select.min.css | 2 +- dist/mdc-select.min.js | 98 +- dist/mdc-snackbar.css | 56 +- dist/mdc-snackbar.js | 6 +- dist/mdc-snackbar.min.css | 2 +- dist/mdc-snackbar.min.js | 6 +- dist/mdc-switch.css | 40 +- dist/mdc-switch.js | 16 +- dist/mdc-switch.min.css | 2 +- dist/mdc-switch.min.js | 16 +- dist/mdc-tabs-experimental.css | 2 +- dist/mdc-tabs-experimental.js | 20 +- dist/mdc-tabs-experimental.min.css | 2 +- dist/mdc-tabs-experimental.min.js | 20 +- dist/mdc-tabs.css | 106 +- dist/mdc-tabs.js | 14 +- dist/mdc-tabs.min.css | 2 +- dist/mdc-tabs.min.js | 14 +- dist/mdc-text-field.css | 426 ++--- dist/mdc-text-field.js | 98 +- dist/mdc-text-field.min.css | 2 +- dist/mdc-text-field.min.js | 98 +- dist/mdc-theme.css | 116 +- dist/mdc-theme.min.css | 2 +- dist/mdc-toolbar.css | 120 +- dist/mdc-toolbar.min.css | 2 +- dist/mdc-typography.css | 50 +- dist/mdc-typography.min.css | 2 +- package-lock.json | 2 +- package.json | 2 +- 94 files changed, 3708 insertions(+), 2964 deletions(-) diff --git a/dist/angularjs-mdc-experimental.css b/dist/angularjs-mdc-experimental.css index 5356270..d927323 100644 --- a/dist/angularjs-mdc-experimental.css +++ b/dist/angularjs-mdc-experimental.css @@ -1,4 +1,4 @@ -.mdc-tab .mdc-tab__drop-down-icon { +.lmdc-tab .lmdc-tab__drop-down-icon { display: inline-block; vertical-align: middle; margin-right: -12px; diff --git a/dist/angularjs-mdc-experimental.js b/dist/angularjs-mdc-experimental.js index 9f7fe32..64afe45 100644 --- a/dist/angularjs-mdc-experimental.js +++ b/dist/angularjs-mdc-experimental.js @@ -1,4 +1,4 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["angularjs-mdc-experimental"]=t():e["angularjs-mdc-experimental"]=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/assets/",n(n.s=45)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adapter_=t}return r(e,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),r(e,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adapter_=t}return r(e,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),r(e,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceFoundationConstants=function(e){if(e.___constantsUpdated)return;[e.cssClasses,e.strings].forEach(function(e){e&&Object.keys(e).forEach(function(t){e[t]=(0,r.replaceMdcClassname)(e[t])})}),e.___constantsUpdated=!0};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?ar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root_=t;for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i2&&void 0!==arguments[2]&&arguments[2],r=void 0;"function"==typeof CustomEvent?r=new CustomEvent(e,{detail:t,bubbles:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(r)}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseComponent=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return e;if(0===e.length)return t;var n={},r=void 0;for(r=e.length-1;r>=0;--r)n[e[r]]=e[r];for(r=t.length-1;r>=0;--r)n[t[r]]=t[r];return Object.keys(n).map(function(e){return n[e]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCComponentNg=void 0;var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.$scope.$emit(e,{detail:t,bubbles:n})}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCMenuAnchorController=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root_=t;for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i2&&void 0!==arguments[2]&&arguments[2],r=void 0;"function"==typeof CustomEvent?r=new CustomEvent(e,{detail:t,bubbles:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(r)}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseComponent=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return e;if(0===e.length)return t;var n={},r=void 0;for(r=e.length-1;r>=0;--r)n[e[r]]=e[r];for(r=t.length-1;r>=0;--r)n[t[r]]=t[r];return Object.keys(n).map(function(e){return n[e]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCComponentNg=void 0;var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.$scope.$emit(e,{detail:t,bubbles:n})}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCMenuAnchorController=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?ar * See the License for the specific language governing permissions and * limitations under the License. */ -var s=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,t=void 0===e?null:e;this.foundation_.open({focusIndex:t})}},{key:"hide",value:function(){this.foundation_.close()}},{key:"setAnchorCorner",value:function(e){this.foundation_.setAnchorCorner(e)}},{key:"setAnchorMargin",value:function(e){this.foundation_.setAnchorMargin(e)}},{key:"getOptionByIndex",value:function(e){return e0&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,t=void 0===e?null:e;this.foundation_.open({focusIndex:t})}},{key:"hide",value:function(){this.foundation_.close()}},{key:"setAnchorCorner",value:function(e){this.foundation_.setAnchorCorner(e)}},{key:"setAnchorMargin",value:function(e){this.foundation_.setAnchorMargin(e)}},{key:"getOptionByIndex",value:function(e){return e=0&&this.itemControllers.splice(e,1)}},{key:"getDefaultFoundation",value:function(){var e=this;return new l.MDCMenuFoundation({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},hasClass:function(t){return e.root_.classList.contains(t)},hasNecessaryDom:function(){return Boolean(e.itemsContainer_)},getAttributeForEventTarget:function(e,t){return e.getAttribute(t)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},getInnerDimensions:function(){var t=e.itemsContainer_;return{width:t.offsetWidth,height:t.offsetHeight}},hasAnchor:function(){return Boolean(e.mdcMenuAnchorCtrl)},getAnchorDimensions:function(){return e.mdcMenuAnchorCtrl.getDimensions()},getWindowDimensions:function(){return{width:e.$window.innerWidth,height:e.$window.innerHeight}},getNumberOfItems:function(){return e.items.length},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n)},registerBodyClickHandler:function(t){return e.$document[0].body.addEventListener("click",t)},deregisterBodyClickHandler:function(t){return e.$document[0].body.removeEventListener("click",t)},getIndexForEventTarget:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(l.MDCMenuFoundation.strings.SELECTED_EVENT,{index:t.index,item:angular.element(e.items[t.index]).controller(s.MDCMenuItemController.name)})},notifyCancel:function(){return e.emit(l.MDCMenuFoundation.strings.CANCEL_EVENT,{})},saveFocus:function(){e.previousFocus_=e.$document[0].activeElement},restoreFocus:function(){e.previousFocus_&&e.previousFocus_.focus()},isFocused:function(){return e.$document[0].activeElement===e.root_},focus:function(){return e.root_.focus()},getFocusedItemIndex:function(){return e.items.indexOf(e.$document[0].activeElement)},focusItemAtIndex:function(t){e.items[t]&&e.items[t].focus()},isRtl:function(){return"rtl"===getComputedStyle(e.root_).getPropertyValue("direction")},setTransformOrigin:function(t){e.root_.style[(0,f.getTransformPropertyName)(window)+"-origin"]=t},setPosition:function(t){e.root_.style.left="left"in t?t.left:null,e.root_.style.right="right"in t?t.right:null,e.root_.style.top="top"in t?t.top:null,e.root_.style.bottom="bottom"in t?t.bottom:null},setMaxHeight:function(t){e.root_.style.maxHeight=t},setAttrForOptionAtIndex:function(t,n,r){return e.items[t].setAttribute(n,r)},rmAttrForOptionAtIndex:function(t,n){return e.items[t].removeAttribute(n)},addClassForOptionAtIndex:function(t,n){return e.items[t].classList.add(n)},rmClassForOptionAtIndex:function(t,n){return e.items[t].classList.remove(n)}})}},{key:"show",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,t=void 0===e?null:e;this.foundation_.open({focusIndex:t})}},{key:"hide",value:function(){this.foundation_.close()}},{key:"toggle",value:function(){this.foundation_.isOpen()?this.hide():this.show()}},{key:"mdcMenuAnchorCtrl",set:function(e){this.mdcMenuAnchorCtrl_=e,e&&e.bindMenu(this)},get:function(){return this.mdcMenuAnchorCtrl_}},{key:"itemsContainer_",get:function(){return this.root_.querySelector(l.MDCMenuFoundation.strings.ITEMS_SELECTOR)}},{key:"items",get:function(){var e=this.itemsContainer_;return[].slice.call(e.querySelectorAll(".mdc-list-item[role]"))}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCMenuToggleController=t.MDC_MENU_TOGGLE_EVENT=void 0;var r=function(){function e(e,t){for(var n=0;n=0&&this.itemControllers.splice(e,1)}},{key:"getDefaultFoundation",value:function(){var e=this;return new d.MDCMenuFoundation({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},hasClass:function(t){return e.root_.classList.contains(t)},hasNecessaryDom:function(){return Boolean(e.itemsContainer_)},getAttributeForEventTarget:function(e,t){return e.getAttribute(t)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},getInnerDimensions:function(){var t=e.itemsContainer_;return{width:t.offsetWidth,height:t.offsetHeight}},hasAnchor:function(){return Boolean(e.mdcMenuAnchorCtrl)},getAnchorDimensions:function(){return e.mdcMenuAnchorCtrl.getDimensions()},getWindowDimensions:function(){return{width:e.$window.innerWidth,height:e.$window.innerHeight}},getNumberOfItems:function(){return e.items.length},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n)},registerBodyClickHandler:function(t){return e.$document[0].body.addEventListener("click",t)},deregisterBodyClickHandler:function(t){return e.$document[0].body.removeEventListener("click",t)},getIndexForEventTarget:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(d.MDCMenuFoundation.strings.SELECTED_EVENT,{index:t.index,item:angular.element(e.items[t.index]).controller(l.MDCMenuItemController.name)})},notifyCancel:function(){return e.emit(d.MDCMenuFoundation.strings.CANCEL_EVENT,{})},saveFocus:function(){e.previousFocus_=e.$document[0].activeElement},restoreFocus:function(){e.previousFocus_&&e.previousFocus_.focus()},isFocused:function(){return e.$document[0].activeElement===e.root_},focus:function(){return e.root_.focus()},getFocusedItemIndex:function(){return e.items.indexOf(e.$document[0].activeElement)},focusItemAtIndex:function(t){e.items[t]&&e.items[t].focus()},isRtl:function(){return"rtl"===getComputedStyle(e.root_).getPropertyValue("direction")},setTransformOrigin:function(t){e.root_.style[(0,p.getTransformPropertyName)(window)+"-origin"]=t},setPosition:function(t){e.root_.style.left="left"in t?t.left:null,e.root_.style.right="right"in t?t.right:null,e.root_.style.top="top"in t?t.top:null,e.root_.style.bottom="bottom"in t?t.bottom:null},setMaxHeight:function(t){e.root_.style.maxHeight=t},setAttrForOptionAtIndex:function(t,n,r){return e.items[t].setAttribute(n,r)},rmAttrForOptionAtIndex:function(t,n){return e.items[t].removeAttribute(n)},addClassForOptionAtIndex:function(t,n){return e.items[t].classList.add(n)},rmClassForOptionAtIndex:function(t,n){return e.items[t].classList.remove(n)}})}},{key:"show",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,t=void 0===e?null:e;this.foundation_.open({focusIndex:t})}},{key:"hide",value:function(){this.foundation_.close()}},{key:"toggle",value:function(){this.foundation_.isOpen()?this.hide():this.show()}},{key:"mdcMenuAnchorCtrl",set:function(e){this.mdcMenuAnchorCtrl_=e,e&&e.bindMenu(this)},get:function(){return this.mdcMenuAnchorCtrl_}},{key:"itemsContainer_",get:function(){return this.root_.querySelector(d.MDCMenuFoundation.strings.ITEMS_SELECTOR)}},{key:"items",get:function(){var e=this.itemsContainer_;return[].slice.call(e.querySelectorAll(y))}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCMenuToggleController=t.MDC_MENU_TOGGLE_EVENT=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(void 0===r||t){var n="transform"in e.document.createElement("div").style?"transform":"webkitTransform";r=n}return r},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(n,Math.max(t,e))},t.bezierProgress=function(e,t,n,r,i){return o(function(e,t,n){if(e<=0)return 0;if(e>=1)return 1;for(var r=e,i=0,a=1,u=0,s=0;s<8;s++){u=o(r,t,n);var c=(o(r+1e-6,t,n)-u)/1e-6;if(Math.abs(u-e)<1e-6)return r;if(Math.abs(c)<1e-6)break;u1e-6&&l<8;l++)u')[0],i.$element.append(i.indicator_),i.tabs_=[],i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.MDCComponentNg),r(t,null,[{key:"name",get:function(){return"mdcTabBar"}},{key:"require",get:function(){return{scroller:"^^?"+u.MDCTabBarScrollerController.name,ngModel:"?"}}},{key:"bindings",get:function(){return{variant:"@"}}},{key:"$inject",get:function(){return(0,i.arrayUnion)(["$element","$window","$timeout"],o(t.__proto__||Object.getPrototypeOf(t),"$inject",this))}}]),r(t,[{key:"initialize",value:function(){var e=this;this.tabSelectedHandler_=function(t){var n=t.detail.tab;return e.activateTab(n,!0)}}},{key:"onElementReady",value:function(){}},{key:"activateTab",value:function(e){var t=this,n=this.tabs.indexOf(e);this.$timeout(function(){return t.foundation_.switchToTabAtIndex(n,!0)},20,!1),this.scroller&&this.scroller.scrollToTabIfNotVisible(e)}},{key:"getDefaultFoundation",value:function(){var e=this;return new s.MDCTabBarFoundation({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},bindOnMDCTabSelectedEvent:function(){return e.listen(s.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},unbindOnMDCTabSelectedEvent:function(){return e.unlisten(s.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},registerResizeHandler:function(t){return e.$window.addEventListener("resize",t)},deregisterResizeHandler:function(t){return e.$window.removeEventListener("resize",t)},getOffsetWidth:function(){return e.root_.offsetWidth},setStyleForIndicator:function(t,n){return e.indicator_.style.setProperty(t,n)},getOffsetWidthForIndicator:function(){return e.indicator_.offsetWidth},notifyChange:function(t){return e.emit(s.MDCTabBarFoundation.strings.CHANGE_EVENT,t)},getNumberOfTabs:function(){return e.tabs.length},isTabActiveAtIndex:function(t){return e.tabs[t]&&e.tabs[t].isActive},setTabActiveAtIndex:function(t,n){e.tabs[t]&&(e.tabs[t].isActive=n)},isDefaultPreventedOnClickForTabAtIndex:function(t){return e.tabs[t].preventDefaultOnClick},setPreventDefaultOnClickForTabAtIndex:function(t,n){e.tabs[t].preventDefaultOnClick=n},measureTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].measureSelf()},getComputedWidthForTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].computedWidth},getComputedLeftForTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].computedLeft}})}},{key:"layout",value:function(){this.foundationReady&&(this.foundation_.layout(),this.ngModel&&this.ngModel.$render(),this.scroller&&this.scroller.layout())}},{key:"addTab",value:function(e){this.tabs.push(e),this.ngModel&&this.ngModel.$viewChangeListeners.push(e.$viewChangeHandler),this.layout()}},{key:"removeTab",value:function(e){var t=this.ngModel?this.ngModel.$viewChangeListeners.indexOf(e.$viewChangeHandler):-1;t>=0&&this.ngModel.$viewChangeListeners.splice(t,1);var n=this.tabs.indexOf(e);n>=0&&(this.tabs.splice(n,1),this.layout())}},{key:"$postLink",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$postLink",this).call(this),this.scroller&&(this.$element.addClass("mdc-tab-bar-scroller__scroll-frame__tabs"),this.scroller.setTabBar(this))}},{key:"initialSyncWithDOM",value:function(){var e=this;this.ngModel?this.ngModel.$render=function(){return e.ngModel.$viewChangeListeners.forEach(function(e){return e()})}:this.tabs.length>0&&(this.tabs[0].isActive=!0)}},{key:"$onChanges",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$onChanges",this).call(this,e),e.variant&&(this.$element.toggleClass("mdc-tab-bar--icon-tabs","icon"===this.variant),this.$element.toggleClass("mdc-tab-bar--icons-with-text","icons-text"===this.variant))}},{key:"$onDestroy",value:function(){this.tabs.length=0,o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$onDestroy",this).call(this)}},{key:"tabElements",get:function(){return[].slice.call(this.root_.getElementsByClassName("mdc-tab"))}},{key:"value",get:function(){return this.ngModel&&this.ngModel.$viewValue},set:function(e){this.ngModel&&this.ngModel.$setViewValue(e)}},{key:"tabs",get:function(){return this.tabs_}},{key:"activeIndex",get:function(){return this.foundation_.getActiveTabIndex()}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cssClasses={ACTIVE:"mdc-tab--active"},t.strings={SELECTED_EVENT:"MDCTab:selected"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}); +var r={BOTTOM:1,CENTER:2,RIGHT:4,FLIP_RTL:8},o={TOP_LEFT:0,TOP_RIGHT:r.RIGHT,BOTTOM_LEFT:r.BOTTOM,BOTTOM_RIGHT:r.BOTTOM|r.RIGHT,TOP_START:r.FLIP_RTL,TOP_END:r.FLIP_RTL|r.RIGHT,BOTTOM_START:r.BOTTOM|r.FLIP_RTL,BOTTOM_END:r.BOTTOM|r.RIGHT|r.FLIP_RTL};t.cssClasses={ROOT:"mdc-menu",OPEN:"mdc-menu--open",ANIMATING_OPEN:"mdc-menu--animating-open",ANIMATING_CLOSED:"mdc-menu--animating-closed",SELECTED_LIST_ITEM:"mdc-list-item--selected"},t.strings={ITEMS_SELECTOR:".mdc-menu__items",SELECTED_EVENT:"MDCMenu:selected",CANCEL_EVENT:"MDCMenu:cancel",ARIA_DISABLED_ATTR:"aria-disabled"},t.numbers={SELECTED_TRIGGER_DELAY:50,TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_WIDTH_RATIO:.67,OFFSET_TO_MENU_HEIGHT_RATIO:.1},t.CornerBit=r,t.Corner=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0;function o(e,t,n){if(0===e||1===e)return e;var r=e*t,o=t+e*(n-t);return(r+=e*(o-r))+e*((o+=e*(n+e*(1-n)-o))-r)}t.getTransformPropertyName=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===r||t){var n="transform"in e.document.createElement("div").style?"transform":"webkitTransform";r=n}return r},t.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(n,Math.max(t,e))},t.bezierProgress=function(e,t,n,r,i){return o(function(e,t,n){if(e<=0)return 0;if(e>=1)return 1;for(var r=e,i=0,a=1,u=0,s=0;s<8;s++){u=o(r,t,n);var c=(o(r+1e-6,t,n)-u)/1e-6;if(Math.abs(u-e)<1e-6)return r;if(Math.abs(c)<1e-6)break;u1e-6&&l<8;l++)u')[0],i.$element.append(i.indicator_),i.tabs_=[],i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.MDCComponentNg),r(t,null,[{key:"name",get:function(){return"mdcTabBar"}},{key:"require",get:function(){return{scroller:"^^?"+l.MDCTabBarScrollerController.name,ngModel:"?"}}},{key:"bindings",get:function(){return{variant:"@"}}},{key:"$inject",get:function(){return(0,i.arrayUnion)(["$element","$window","$timeout"],o(t.__proto__||Object.getPrototypeOf(t),"$inject",this))}}]),r(t,[{key:"initialize",value:function(){var e=this;this.tabSelectedHandler_=function(t){var n=t.detail.tab;return e.activateTab(n,!0)}}},{key:"onElementReady",value:function(){}},{key:"activateTab",value:function(e){var t=this,n=this.tabs.indexOf(e);this.$timeout(function(){return t.foundation_.switchToTabAtIndex(n,!0)},20,!1),this.scroller&&this.scroller.scrollToTabIfNotVisible(e)}},{key:"getDefaultFoundation",value:function(){var e=this;return new f.MDCTabBarFoundation({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},bindOnMDCTabSelectedEvent:function(){return e.listen(f.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},unbindOnMDCTabSelectedEvent:function(){return e.unlisten(f.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},registerResizeHandler:function(t){return e.$window.addEventListener("resize",t)},deregisterResizeHandler:function(t){return e.$window.removeEventListener("resize",t)},getOffsetWidth:function(){return e.root_.offsetWidth},setStyleForIndicator:function(t,n){return e.indicator_.style.setProperty(t,n)},getOffsetWidthForIndicator:function(){return e.indicator_.offsetWidth},notifyChange:function(t){return e.emit(f.MDCTabBarFoundation.strings.CHANGE_EVENT,t)},getNumberOfTabs:function(){return e.tabs.length},isTabActiveAtIndex:function(t){return e.tabs[t]&&e.tabs[t].isActive},setTabActiveAtIndex:function(t,n){e.tabs[t]&&(e.tabs[t].isActive=n)},isDefaultPreventedOnClickForTabAtIndex:function(t){return e.tabs[t].preventDefaultOnClick},setPreventDefaultOnClickForTabAtIndex:function(t,n){e.tabs[t].preventDefaultOnClick=n},measureTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].measureSelf()},getComputedWidthForTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].computedWidth},getComputedLeftForTabAtIndex:function(t){return e.tabs[t]&&e.tabs[t].computedLeft}})}},{key:"layout",value:function(){this.foundationReady&&(this.foundation_.layout(),this.ngModel&&this.ngModel.$render(),this.scroller&&this.scroller.layout())}},{key:"addTab",value:function(e){this.tabs.push(e),this.ngModel&&this.ngModel.$viewChangeListeners.push(e.$viewChangeHandler),this.layout()}},{key:"removeTab",value:function(e){var t=this.ngModel?this.ngModel.$viewChangeListeners.indexOf(e.$viewChangeHandler):-1;t>=0&&this.ngModel.$viewChangeListeners.splice(t,1);var n=this.tabs.indexOf(e);n>=0&&(this.tabs.splice(n,1),this.layout())}},{key:"$postLink",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$postLink",this).call(this),this.scroller&&(this.$element.addClass(v),this.scroller.setTabBar(this))}},{key:"initialSyncWithDOM",value:function(){var e=this;this.ngModel?this.ngModel.$render=function(){return e.ngModel.$viewChangeListeners.forEach(function(e){return e()})}:this.tabs.length>0&&(this.tabs[0].isActive=!0)}},{key:"$onChanges",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$onChanges",this).call(this,e),e.variant&&(this.$element.toggleClass(h,"icon"===this.variant),this.$element.toggleClass(_,"icons-text"===this.variant))}},{key:"$onDestroy",value:function(){this.tabs.length=0,o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"$onDestroy",this).call(this)}},{key:"tabElements",get:function(){return[].slice.call(this.root_.getElementsByClassName(c.BASE_CLASSNAME))}},{key:"value",get:function(){return this.ngModel&&this.ngModel.$viewValue},set:function(e){this.ngModel&&this.ngModel.$setViewValue(e)}},{key:"tabs",get:function(){return this.tabs_}},{key:"activeIndex",get:function(){return this.foundation_.getActiveTabIndex()}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cssClasses={ACTIVE:"mdc-tab--active"},t.strings={SELECTED_EVENT:"MDCTab:selected"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}); /** * @license * Copyright 2016 Google Inc. All Rights Reserved. @@ -116,7 +116,7 @@ var r=void 0,o=void 0;t.supportsCssVariables=function(e){var t=arguments.length> * See the License for the specific language governing permissions and * limitations under the License. */ -var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.util=t.RippleCapableSurface=t.MDCRippleFoundation=t.MDCRipple=void 0;var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,r=void 0===n?void 0:n,o=new t(e);return void 0!==r&&(o.unbounded=r),o}},{key:"createAdapter",value:function(e){var t=a.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return a.supportsCssVariables(window)},isUnbounded:function(){return e.unbounded},isSurfaceActive:function(){return e.root_[t](":active")},isSurfaceDisabled:function(){return e.disabled},addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},containsEventTarget:function(t){return e.root_.contains(t)},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,a.applyPassive())},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,a.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,a.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,a.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(t,n){return e.root_.style.setProperty(t,n)},computeBoundingRect:function(){return e.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),t}(),l=function e(){s(this,e)};l.prototype.root_,l.prototype.unbounded,l.prototype.disabled,t.MDCRipple=c,t.MDCRippleFoundation=i.default,t.RippleCapableSurface=l,t.util=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTab=t.MDCTabFoundation=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(e){return new i.MDCTab(e)};this.indicator_=this.root_.querySelector(a.default.strings.INDICATOR_SELECTOR),this.tabs_=this.gatherTabs_(t),this.tabSelectedHandler_=function(t){var n=t.detail.tab;e.setActiveTab_(n,!0)}}},{key:"getDefaultFoundation",value:function(){var e=this;return new a.default({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},bindOnMDCTabSelectedEvent:function(){return e.listen(i.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},unbindOnMDCTabSelectedEvent:function(){return e.unlisten(i.MDCTabFoundation.strings.SELECTED_EVENT,e.tabSelectedHandler_)},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getOffsetWidth:function(){return e.root_.offsetWidth},setStyleForIndicator:function(t,n){return e.indicator_.style.setProperty(t,n)},getOffsetWidthForIndicator:function(){return e.indicator_.offsetWidth},notifyChange:function(t){return e.emit(a.default.strings.CHANGE_EVENT,t)},getNumberOfTabs:function(){return e.tabs.length},isTabActiveAtIndex:function(t){return e.tabs[t].isActive},setTabActiveAtIndex:function(t,n){e.tabs[t].isActive=n},isDefaultPreventedOnClickForTabAtIndex:function(t){return e.tabs[t].preventDefaultOnClick},setPreventDefaultOnClickForTabAtIndex:function(t,n){e.tabs[t].preventDefaultOnClick=n},measureTabAtIndex:function(t){return e.tabs[t].measureSelf()},getComputedWidthForTabAtIndex:function(t){return e.tabs[t].computedWidth},getComputedLeftForTabAtIndex:function(t){return e.tabs[t].computedLeft}})}},{key:"gatherTabs_",value:function(e){return[].slice.call(this.root_.querySelectorAll(a.default.strings.TAB_SELECTOR)).map(function(t){return e(t)})}},{key:"setActiveTabIndex_",value:function(e,t){this.foundation_.switchToTabAtIndex(e,t)}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"setActiveTab_",value:function(e,t){var n=this.tabs.indexOf(e);if(n<0)throw new Error("Invalid tab component given as activeTab: Tab not found within this component's tab list");this.setActiveTabIndex_(n,t)}},{key:"tabs",get:function(){return this.tabs_}},{key:"activeTab",get:function(){var e=this.foundation_.getActiveTabIndex();return this.tabs[e]},set:function(e){this.setActiveTab_(e,!1)}},{key:"activeTabIndex",get:function(){return this.foundation_.getActiveTabIndex()},set:function(e){this.setActiveTabIndex_(e,!1)}}],[{key:"attachTo",value:function(e){return new t(e)}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabBarScroller=t.MDCTabBarScrollerFoundation=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:function(e){return new a.MDCTabBar(e)};this.scrollFrame_=this.root_.querySelector(u.default.strings.FRAME_SELECTOR),this.tabBarEl_=this.root_.querySelector(u.default.strings.TABS_SELECTOR),this.forwardIndicator_=this.root_.querySelector(u.default.strings.INDICATOR_FORWARD_SELECTOR),this.backIndicator_=this.root_.querySelector(u.default.strings.INDICATOR_BACK_SELECTOR),this.tabBar_=e(this.tabBarEl_)}},{key:"getDefaultFoundation",value:function(){var e=this;return new u.default({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},addClassToForwardIndicator:function(t){return e.forwardIndicator_.classList.add(t)},removeClassFromForwardIndicator:function(t){return e.forwardIndicator_.classList.remove(t)},addClassToBackIndicator:function(t){return e.backIndicator_.classList.add(t)},removeClassFromBackIndicator:function(t){return e.backIndicator_.classList.remove(t)},isRTL:function(){return"rtl"===getComputedStyle(e.root_).getPropertyValue("direction")},registerBackIndicatorClickHandler:function(t){return e.backIndicator_.addEventListener("click",t)},deregisterBackIndicatorClickHandler:function(t){return e.backIndicator_.removeEventListener("click",t)},registerForwardIndicatorClickHandler:function(t){return e.forwardIndicator_.addEventListener("click",t)},deregisterForwardIndicatorClickHandler:function(t){return e.forwardIndicator_.removeEventListener("click",t)},registerCapturedInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,!0)},deregisterCapturedInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,!0)},registerWindowResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterWindowResizeHandler:function(e){return window.removeEventListener("resize",e)},getNumberOfTabs:function(){return e.tabBar.tabs.length},getComputedWidthForTabAtIndex:function(t){return e.tabBar.tabs[t].computedWidth},getComputedLeftForTabAtIndex:function(t){return e.tabBar.tabs[t].computedLeft},getOffsetWidthForScrollFrame:function(){return e.scrollFrame_.offsetWidth},getScrollLeftForScrollFrame:function(){return e.scrollFrame_.scrollLeft},setScrollLeftForScrollFrame:function(t){return e.scrollFrame_.scrollLeft=t},getOffsetWidthForTabBar:function(){return e.tabBarEl_.offsetWidth},setTransformStyleForTabBar:function(t){e.tabBarEl_.style.setProperty((0,o.getCorrectPropertyName)(window,"transform"),t)},getOffsetLeftForEventTarget:function(e){return e.offsetLeft},getOffsetWidthForEventTarget:function(e){return e.offsetWidth}})}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"tabBar",get:function(){return this.tabBar_}}],[{key:"attachTo",value:function(e){return new t(e)}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.has=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabBarScrollerController=void 0;var r=function(){function e(e,t){for(var n=0;n-1&&!t.isTabAtIndexVisible(n)&&t.foundation_.scrollToTabAtIndex(n)},100,!1)}},{key:"isTabAtIndexVisible",value:function(e){var t=this.tabElements[e].getBoundingClientRect(),n=this.scrollFrame_.getBoundingClientRect();return t.left>=n.left&&t.right<=n.right}},{key:"getDefaultFoundation",value:function(){var e=this;return new u.MDCTabBarScrollerFoundation({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},addClassToForwardIndicator:function(t){return e.forwardIndicator_.classList.add(t)},removeClassFromForwardIndicator:function(t){return e.forwardIndicator_.classList.remove(t)},addClassToBackIndicator:function(t){return e.backIndicator_.classList.add(t)},removeClassFromBackIndicator:function(t){return e.backIndicator_.classList.remove(t)},isRTL:function(){return"rtl"===getComputedStyle(e.root_).getPropertyValue("direction")},registerBackIndicatorClickHandler:function(t){return e.backIndicator_.addEventListener("click",t)},deregisterBackIndicatorClickHandler:function(t){return e.backIndicator_.removeEventListener("click",t)},registerForwardIndicatorClickHandler:function(t){return e.forwardIndicator_.addEventListener("click",t)},deregisterForwardIndicatorClickHandler:function(t){return e.forwardIndicator_.removeEventListener("click",t)},registerCapturedInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,!0)},deregisterCapturedInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,!0)},registerWindowResizeHandler:function(t){return e.$window.addEventListener("resize",t)},deregisterWindowResizeHandler:function(t){return e.$window.removeEventListener("resize",t)},getNumberOfTabs:function(){return e.tabElements.length},getComputedWidthForTabAtIndex:function(t){return e.tabElements[t].offsetWidth},getComputedLeftForTabAtIndex:function(t){return e.tabElements[t].offsetLeft},getOffsetWidthForScrollFrame:function(){return e.scrollFrame_.offsetWidth},getScrollLeftForScrollFrame:function(){return e.scrollFrame_.scrollLeft},setScrollLeftForScrollFrame:function(t){return e.scrollFrame_.scrollLeft=t},getOffsetWidthForTabBar:function(){return e.tabBarEl_&&e.tabBarEl_.offsetWidth},setTransformStyleForTabBar:function(t){e.tabBarEl_&&e.tabBarEl_.style.setProperty((0,a.getCorrectPropertyName)(e.$window,"transform"),t)},getOffsetLeftForEventTarget:function(e){return e.offsetLeft},getOffsetWidthForEventTarget:function(e){return e.offsetWidth}})}},{key:"layout",value:function(){this.foundationReady&&(this.gatherTabElements_(),this.foundation_.layout())}},{key:"tabBar",get:function(){return this.tabBar_}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCExperimentalMenuItemController=void 0;var r=function(){function e(e,t){for(var n=0;n